Raised This Month: $ Target: $400
 0% 

2 questions about "box" phys system


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 07-20-2008 , 09:58   2 questions about "box" phys system
Reply With Quote #1

--------------first----------------
Quote:
new gphys[501][3]

public plugin_init() {
set_task(1.0,"phys")
}

public phys()
while((ent = find_ent_by_class(ent, "zombiemod_phys")) != 0){//create this entity in Hammer ,its a new entity class(can't find in fgd)
get_brush_entity_origin(ent,gphys[ent])//get origin
//entity_set_int(ent,EV_INT_solid, 2)//maybe it's not necessary because its a bursh entity
entity_set_int(ent, EV_INT_movetype, 6)//fall
entity_set_float(ent,EV_FL_takedamage,1.0)//detect shoot
entity_set_float(ent,EV_FL_health,9999.0)//prevent break
entity_set_int(ent, EV_INT_team, zmphys)
//its a physic entity
}
any idea?

---------------second-----------------
takedamage ( victim, inflictor, attacker, Float:damage, type )

what's the different between inflictor and attacker?

Last edited by hzqst; 07-20-2008 at 10:01.
hzqst 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 05:37.


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