Raised This Month: $ Target: $400
 0% 

Hero Abiliy : Hook (Like Pudge's from DotA)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-26-2013 , 02:27   Re: Hero Abiliy : Hook (Like Pudge's from DotA)
Reply With Quote #1

Pseudocode:

Code:
//Plugin Init
Register hook entity touch

//Hook start function
Create hook entity
Set hook entity properties (movetype, solid, owner, etc.)
Create TE_BEAMENTS (trail) message from owner to hook
Use velocity_by_aim to set velocity for hook

//Hook touch function
If entity is valid player,
   If player is owner
      Remove the hook entity
   Else
      set velocity on player towards hook's owner
Set velocity on hook towards owner
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 16:21.


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