View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-03-2014 , 12:34   Re: Freak Fortress 2 1.10.0 Released
Reply With Quote #985

Quote:
Originally Posted by rswallen View Post
Update the code to use entity references (and check the healthbar is a valid entity before setting its health percentage)
Quote:
Originally Posted by Wliu View Post
Fixed by checking that the healthbar is valid before updating the healthbar.

Probably do need to convert it to entity references though.

If I'm lucky, 1.10.1 will be released today.
It'd also help to use SDKHooks to catch the creation (and destruction) of the monster_resource entity.

That should only happen at map end / map start, though.

For reference, you can consult the Horseman Healthbar code.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline