Raised This Month: $ Target: $400
 0% 

Gravity on demand


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SuperDuper
Member
Join Date: May 2006
Location: na
Old 05-21-2006 , 15:59   Gravity on demand
Reply With Quote #1

I am trying to make a plugin so that if you are falling from a high ledge, you can use this command and have gravity go lower for you. But when ever i press it in the air, nothing happens. when im on the ground, i hop a little

Code:
#include <amxmodx>
 #include <amxmisc>
 #include <engine>


public plugin_init(){
		register_plugin ("parachute", "1.0", "SuperDuper");
		register_clcmd("parachute","parachute")
		}

public parachute(id){
	if(get_entity_flags(id) & FL_ONGROUND) {
		new Float: velocity[3]
		entity_get_vector(id,EV_VEC_velocity,velocity)
		velocity[2] = 200.0
		entity_set_vector(id,EV_VEC_velocity,velocity)
		return PLUGIN_HANDLED
	}
	return PLUGIN_HANDLED
}
is velocity the same thing as gravity?
__________________
[Team.Profit] Profit' <LDR>. Our server owns!

CS:CZ or DIE
SuperDuper is offline
Send a message via AIM to SuperDuper Send a message via MSN to SuperDuper Send a message via Yahoo to SuperDuper
 



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:24.


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