Double Damage
I'm trying to set double damage when a certain boolean is true
PHP Code:
PHP Code:
|
Re: Double Damage
Code:
is_user_connected(iAttacker) Code:
This check will prevent double damage for HE grenades. The rest is fine. |
Re: Double Damage
So something like this?
PHP Code:
|
Re: Double Damage
I meant to replace the entire check with "is_user_connected", not add it again.
|
Re: Double Damage
Adjusted my code, should be okay now?
Also double damage is not needed for HE Grenades. Double damage should only be applied to AK47, M4A1, AWP and Deagle. Gotta add CurWeapon for that, but i'm not that far yet. |
Re: Double Damage
You don't need CurWeapon. You can use "get_user_weapon" directly.
|
Re: Double Damage
Quote:
PHP Code:
PHP Code:
|
Re: Double Damage
Try this
PHP Code:
|
Re: Double Damage
Thanks for the feedback Bugsy, but i'm afraid if i use that code, that this code will become unnessecary.
PHP Code:
|
Re: Double Damage
Bugsy gave you everything you need, so you don't need the iWeapons array. It's better to check the weapon using a bitstum rather than looping an entire array.
|
| All times are GMT -4. The time now is 02:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.