changing player 'pain' sounds
I am trying to insert my own painsounds into my function, but the engines painsounds are played instead, how would I stop them from playing so the ones in my function play?
PHP Code:
PHP Code:
if I cannot get this to work how I would like it to, I will just be checking the health and setting it to health-damage and returning supercede on the function (when req's are met) but id rather just only block the damage function when the entity is supposed to be switching from on/off instead of blocking it all the time. |
Re: changing player 'pain' sounds
Are you talking about suit sentences like "seek medical attention" ?
Also, about your TakeDamage hook, instead of checking watertype you could only check : PHP Code:
|
Re: changing player 'pain' sounds
Quote:
the 1st hook didnt even work as it is actually a func_water that does the damage. I will be chanigng it to check the damagebits. I dont have to do that, I was just using a FM_registertouch hook I had set up, and I already grab the classname for other entities, I was just adding this code in to check it, it wasnt even called as stated above.. I have ran into a new problem, but it is unrelated to this.. in DMC, players are shifted up 6 units on the Y axis, what would be an easy way to do/simulate this in other games? |
Re: changing player 'pain' sounds
FM_Touch is not efficient to hook, you should never hook it.
|
Re: changing player 'pain' sounds
Quote:
PHP Code:
PHP Code:
|
Re: changing player 'pain' sounds
If you still need to figure out what is the touched class, would be more efficient to register only wanted classes. But it is better.
You don't get the log because you have commented the correct way : PHP Code:
|
| All times are GMT -4. The time now is 23:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.