|
Thread: Question for Alexspl (plugin help) | |
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 06, 2023 01:30 AM |
|
|
Question for Alexspl (plugin help)
In your First Aid Tent Plugin you have a line which says:
#include ".... HotA homm3.h "
I can't figure out which file this is or where I should put it. My Horn of the Abyss folder doesn't have any files called homm3
I'd be grateful for some help here. (completely new to playing around with editing/making my own plugins)
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted December 06, 2023 06:17 AM |
|
|
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 06, 2023 04:40 PM |
|
|
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 07, 2023 02:44 AM |
|
|
Got a second question if you're willing.
I was playing around with the FirebirdImmune to Firemagic plugin and managed to make Centaur Captains Immune to fire easily enough.
My question is with this:
o_pCreatureInfo[CID_HYDRA].flags = 0x409B;
Is there a list of flags somewhere? I've been looking all over without luck.
I'm looking to give Hydras regeneration, but also be interesting to see a list with information on fly and everything else
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted December 07, 2023 09:52 AM |
|
|
Here are known flags -
enum creature_flags
{
CF_DOUBLE_WIDE = 0x1,
CF_FLYING_ARMY = 0x2,
CF_SHOOTING_ARMY = 0x4,
CF_HAS_EXTENDED_ATTACK = 0x8,
CF_ALIVE = 0x10,
CF_CATAPULT = 0x20,
CF_SIEGE_WEAPON = 0x40,
CF_KING_1 = 0x80,
CF_KING_2 = 0x100,
CF_KING_3 = 0x200,
CF_IMMUNE_TO_MIND_SPELLS = 0x400,
CF_SHOOTS_RAY = 0x800,
CF_NO_MELEE_PENALTY = 0x1000,
CF_UNUSED = 0x2000,
CF_IMMUNE_TO_FIRE_SPELLS = 0x4000,
CF_TWO_ATTACKS = 0x8000,
CF_FREE_ATTACK = 0x10000,
CF_NO_MORALE = 0x20000,
CF_UNDEAD = 0x40000,
CF_MULTI_HEADED = 0x80000,
CF_FIREBALL_ATTACK = 0x100000,
CF_IMMOBILIZED = 0x200000,
CF_SUMMONED = 0x400000,
CF_CLONE = 0x800000,
CF_MORALE = 0x1000000,
CF_WAITING = 0x2000000,
CF_DONE = 0x4000000,
CF_DEFENDING = 0x8000000,
CF_SACRIFICED = 0x10000000,
CF_RED_COLORING = 0x20000000,
CF_GREY_COLORING = 0x40000000,
CF_DRAGON = 0x80000000,
};
|
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 07, 2023 05:11 PM |
|
|
Thank you again!
So if Fire immunity is 0x4000
What does the 9B mean in 0x409B?
And I guess the lack of regen either means it's unknown or implemented in a different method?
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted December 07, 2023 06:34 PM |
|
|
0x409B = 0x4000 + 0x80 + 0x10 + 8 + 2 + 1. Someone made Hydras fly? 
Quote: And I guess the lack of regen either means it's unknown or implemented in a different method?
Yes, it's hardcoded. You need a plugin to add such an ability as regeneration.
|
|
LordCameron

 
   
Famous Hero
Veteran of the Succession Wars
|
posted December 07, 2023 06:47 PM |
|
|
AlexSpl said: 0x409B = 0x4000 + 0x80 + 0x10 + 8 + 2 + 1. Someone made Hydras fly? 
Haha, oops. I didn't actual test the plugin more than chucking a fireball at them. I gotta try the rest out now
____________
What are Homm Songs based on?
|
|
|