if hit user else
Hello, i need something like this
if dont hit user(id){ screen fade(id) } else{ nothing happens } i have the code for screen fade but i dont know how to do the if hit enemy thing |
Re: if hit user else
You'll need to explain in more detail regarding what you want (don't use any code to describe it).
If I had to guess, you would need to hook Ham_TakeDamage and process information from there. |
Re: if hit user else
Well i need the users screen to fade if he shoots somewhere randomly, but when he hits someone from the enemies then his screen wont fade.
|
Re: if hit user else
Register Client PreThink, define Button and use someone like this:
Code:
if(Button == FIRE) { |
Re: if hit user else
Quote:
Quote:
|
Re: if hit user else
Like it doesnt matter how far or close he is, if he doesnt hit anyone then screen fades but if hits enemy then doesnt fade
|
Re: if hit user else
@fysiks no only this code, this need some checks...
|
Re: if hit user else
Could someone help with this then? I am not the best coder.
|
Re: if hit user else
Quote:
Since you are in scripting help forum, don't expect that you will receive already made code. You can send a trace and check it's results. If the trace don't hit a player from the enemy team, fade screen. |
| All times are GMT -4. The time now is 12:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.