Raised This Month: $ Target: $400
 0% 

Plugin Help Request - Adv. Train


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-06-2006 , 09:28   Re: Plugin Help Request - Adv. Train
Reply With Quote #1

For the first one, you want to check

Code:
if(attacker)    return PLUGIN_CONTINUE

because the attacker will always be worldspawn if they fell (index 0)

Also, for the headshot thing, you can get the origins of both players and then subtract the attacker's origin from the victim's origin, multiply the vector by -1, add a few units to the z axis, then set the victim's velocity to that.

For the "make his head fall back" part, there's probably a sequence somewhere for that. You'll have to load up HL model viewer because I don't know any of the sequences off the top of my head. But to actually implement it,

Code:
entity_set_int(id,EV_INT_sequence,num)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 08:06.


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