|
Author
|
Message
|
|
Banned
|

11-12-2014
, 00:38
how to prevent registerhamfromentity being called for whole classname
|
#1
|
RegisterHamFromEntity(Ham_Killed, ent, "fw_killed",1)
RegisterHamFromEntity(Ham_TakeDamage, ent, "fw_takedamage_ent",1)
in ent create func
when I do damage or kill ent
forward(s) calls as many times as many entities in the world
example there are two ents. 1 hit to ent makes two fwd calls
4 ents - 8 fwd calls.
how to filter it to have 1 forward call per one entity ?
I want to spawn entity again after kill .
So now I have 2 ents instead of 1
than 4 instead of 2 and so on .
engfunc(EngFunc_AllocString, "info_target"))
I Know I can register it for info_target than filter for classname
but not sure
also I cant give weapon to ent
entity_set_string(ent, EV_SZ_weaponmodel, knifemdl)
doesnt work
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
Last edited by avril-lavigne; 11-12-2014 at 02:33.
|
|
|
|