Jump to content
Sign in to follow this  
The Seeker

[Plugin] Parachute

Recommended Posts

Nume plugin: Parasuta fara model
Descriere: Se utilizeaza prin tasta E, nu necesita modele pentru parasuta.
Versiune: 1.0

#include <amxmodx>
#include <engine>

public client_PreThink(id)

	new Float:fallspeed = 100.0 * -1.0

	new button = get_user_button(id)
	if(button & IN_USE) 
		new Float:velocity[3]
		entity_get_vector(id, EV_VEC_velocity, velocity)
		if (velocity[2] < 0.0) 
			entity_set_int(id, EV_INT_sequence, 3)
			entity_set_int(id, EV_INT_gaitsequence, 1)
			entity_set_float(id, EV_FL_frame, 1.0)
			entity_set_float(id, EV_FL_framerate, 1.0)

			velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
			entity_set_vector(id, EV_VEC_velocity, velocity)

Mod de instalare: Compilati, dupa adaugati fisierul .amxx in amxmodx/plugins si il treceti in amxmodx/configs/plugins.ini

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.