Raised This Month: $ Target: $400
 0% 

how to prevent registerhamfromentity being called for whole classname


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 11-12-2014 , 00:38   how to prevent registerhamfromentity being called for whole classname
Reply With Quote #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.
avril-lavigne is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode