Headshot damage not changing
I have this snippet of code.
Code:
if(headshotProtect[victimId]){ floatModulus is this function: Code:
public float floatModulus(float a, float b){ The PrintToServer function tells me the damage I want it to be, but it doesn't actually change the damage. |
Re: Headshot damage not changing
Just to make sure, this function looks something like this, right?
PHP Code:
PHP Code:
|
Re: Headshot damage not changing
Quote:
PHP Code:
|
Re: Headshot damage not changing
Also victimId is this:
PHP Code:
EDIT: I copied and pasted from the wrong function, lol. PHP Code:
|
Re: Headshot damage not changing
If you are using victimid like that, you need to convert it to a client index first (otherwise your array access won't work properly).
|
Re: Headshot damage not changing
Quote:
|
Re: Headshot damage not changing
Quote:
|
Re: Headshot damage not changing
If your using OnTakeDamage from SDKHooks, you don't need to do GetClientOfUserId as SDKHooks OnTakeDamage passes a client index.
|
Re: Headshot damage not changing
Quote:
|
Re: Headshot damage not changing
Quote:
|
All times are GMT -4. The time now is 03:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.