[PLUGIN] Parasuta fara model

person aditzu
schedule Jan 5, 2025
forum 0
visibility 73
Jan 5, 2025 at 8:05 PM
Original Post
#1
CEO Founder
20
View level
military_tech 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:

format_quote

#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)
}
}
}



Join the Discussion

You need to be logged in to post a reply.

loginLogin to Reply

ONLINE MEMBERS

No members currently online
0
Online
4
Today
678
Total