Jay
Rank: Site Admin
Joined: 27 Mar 2005
Posts: 339
|
Post subject: GoreMod latest.
I've learned how to fully implement TraceAttack hooks so im going to move from the events to this function on the next build.
Whats this mean ? Simply, it means I have an exact location for each bullet impact, so the blood will be precisely where it should be.
It also means, instead of my current *lame* method of checking for C4 kills, I can do it alot easier and more swiftly.
And, another great pro to incorporating this hook is that on HE Nade kills, I get a pointer to the explosion that actually did the damage instead of just the player who threw it. So gibs will be thrown AWAY from the explosion instead of straight up ! Neat eh ?
Hopefully it'll also mean some new features i've had in mind might make it onto the board too, you'll have to wait and find out !
*lame*: Currently, the player_hurt even is fired before the bomb_exploded event, so I basically add the frame number a player died to an array, and then on bomb_exploded I re-check the array with the player id for an index, for any deaths (also a hack because player_death isnt called on C4 deaths) which occured during the bomb explosion frame.
With this new method, GetInflictor is available and returns a valid pointed to the C4 so its quick and painless and I may also be able to use force away from the C4 main impact site for the gibs too !
Oh, and ill also be incorporating an admin system =)
|