[PLUGIN] Parasuta fara model
CEO Founder
297
Posts
9
Coins
50
Topics
10
Achievements
Mar 2024
Joined
Veteran
1558 XP
Total
500
2500
Next: Expert
942 XP needed
Jan 5, 2025 at 8:05 PM
Original Post
CEO Founder
View level
Veteran
1558 XP
Total
500
2500
Next: Expert
942 XP needed
View stats
297
Posts
50
Topics
10
Achievements
Mar 2024
Joined
Descriere: Parasuta fara model
Descarcare:
Versiune: 1.0
Link oficial:
Descarcare:
Versiune: 1.0
Link oficial:
#include
#include
public plugin_init()
{
register_plugin("Parasuta", "1.0", "ttt")
}
public client_PreThink(id)
{
if (!is_user_alive(id))
return
const Float:MAX_FALL_SPEED = -100.0
const Float:INCREMENT_SPEED = 40.0
new playerButtons = get_user_button(id)
if (playerButtons & IN_USE)
{
new Float:currentVelocity[3]
entity_get_vector(id, EV_VEC_velocity, currentVelocity)
if (currentVelocity[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)
currentVelocity[2] = (currentVelocity[2] + INCREMENT_SPEED < MAX_FALL_SPEED)
? currentVelocity[2] + INCREMENT_SPEED
: MAX_FALL_SPEED
entity_set_vector(id, EV_VEC_velocity, currentVelocity)
}
}
}