View Single Post
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-12-2007 , 02:25   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #19

Well it should not effect his speed at all something else might be causing that (and he should just be able to change weapons to get his speed back). And as I said above I could just check the users gravity before setting it for the parachute. And reset it back to the checked gravity after the player is done parachuting, though in doing this could present possible exploits (ie. map sets gravity, use parachute keep newly set gravity until death)

I did take a look in wc3 and gravity is only set on spawn for undead, but the item that you can buy gets set when you buy it (and new spawn if you didn't die), so that could be a problem as well.


Though seeing as he wants it that way I could make it so it does what I said and it should fix his problem for the most part. It's not hard to change, but let me find some free time to do it in while I'm not working on an sh update. I will edit this post and post it here so as not to create a new post for it.



----------------
Edit: Ok try this and see if it helps, it checks/saves your gravity whenever you use the parachute... (also added a check against using parachute in water in this one) Untested but should be fine.
Attached Files
File Type: sma Get Plugin or Get Source (amx_parachute.sma - 1941 views - 14.4 KB)

Last edited by vittu; 03-14-2007 at 23:31.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu