matpow2 / cuwo

Open server and utilities for Cube World
GNU General Public License v3.0
170 stars 49 forks source link

Additional entity hostile types from the terrain generator #166

Open UserXXX opened 9 years ago

UserXXX commented 9 years ago

When trying out to use entities I found out that the terrain generator uses some more constants for the hostile_type of entities. I tryed to find out what they mean and came to the following result: 3 - friendly entity, but the name is displayed (2 doesn't display the name) 4 - seems to be the same as 2 5 - seems to be the same as 2 6 - Targets (gray health bars) everything above 6 seems to be the same as 2 (checked up to 16 and from there 32, 64, 128, all with the same result).

As I am not that good in reverse engineering I would like to ask you to have a look at these values and create constants for them if you can confirm them.

matpow2 commented 9 years ago

Thanks for the info

I'm committing a new constants.py with the new constants, but I don't have time to verify them at this moment. I'll do some proper RE later to check. At least you can use the new hostile types for now.

UserXXX commented 9 years ago

Thank you.

UserXXX commented 9 years ago

Got a typing error in first post, sorry. 5 seems to be also the same as 2. I corrected it.

matpow2 commented 7 years ago

5 is something specific in the world simulator, at least, so let's wait until we know more.