Problem with the player explode on death
When a zombie dies this plugin creating an explosion that should knock back humans.
The problem is that this sometimes happens(knock back humans), but not often(one in ten attempts approximately)but you should always happen when humans are in explode radius. Does anyone know what could be the problem? PHP Code:
|
Re: Problem with the player explode on death
Try like this
Code:
originF[0] = put your desired value - get_distance_f(originF, ioriginF) * 0.5 |
Re: Problem with the player explode on death
The same problem is still there.
|
Re: Problem with the player explode on death
replace only last part with the following
you had to create a new float for the knockback Code:
new Float:Knockback[3] |
Re: Problem with the player explode on death
Will try this later.
Anyway,my first version always work when just 2 players play(1 human vs 1 zombies) Maybe this has effect only on player who kill zombies????? |
Re: Problem with the player explode on death
nope, im sure it happens because you used the same float to store origin and to set velocity
just try to store the knockback value in a new float, it should work |
Re: Problem with the player explode on death
PHP Code:
|
Re: Problem with the player explode on death
Problem is still here. Any other solution?
|
Re: Problem with the player explode on death
to debug further the problem, put a client_print under set_pev(victim, pev_velocity, knockback) in order to see if the function is called on every player in the radius
|
| All times are GMT -4. The time now is 22:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.