More messing with non-standard stuff, now imagine this used in a boss fight (well, it'll be used in our Phoenix Castle boss fight).
|
|
|
|
got it, gona give a try to see what i can do, i was just a bit confused on the lookface of the guard but i got a idea.Quote:
@Garen: Take a few minutes to think about what would cause that action... it's pretty simple when you think about it.
Spawn Entity packet is the same packet regardless of if you are spawning a monster or a player. The only difference is some fields that are not used by each entity type. You can always just create guards that look like players (complete with weapons, garments and full gears if you wanted). You can then write whatever AI you want which would include things like walking, patrol routes, jumping, skills/cooldowns/etc.
It's all just based on how you want your server to work and how you write it.
I'm pretty sure the client also has supports for mobs holding equipment but I've never experimented with it so I couldn't say 100 percent for sure.
Atleast an octo can hold weapons, showed engputer us on the twitch tv video ;)Quote:
@Garen: Take a few minutes to think about what would cause that action... it's pretty simple when you think about it.
Spawn Entity packet is the same packet regardless of if you are spawning a monster or a player. The only difference is some fields that are not used by each entity type. You can always just create guards that look like players (complete with weapons, garments and full gears if you wanted). You can then write whatever AI you want which would include things like walking, patrol routes, jumping, skills/cooldowns/etc.
It's all just based on how you want your server to work and how you write it.
I'm pretty sure the client also has supports for mobs holding equipment but I've never experimented with it so I couldn't say 100 percent for sure.
case 10014: // spawn entity
{
int32_t objId = *((int32_t*)&msg[8]);
if (objId < 1000000) // is monster
{
zoom_percent = *((int16_t*)&msg[0xb7]);
size_add = *((int16_t*)&msg[0xb7+2]);
}
break;
}