Real Grenades Behavior

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Real Grenades Behavior

Post by greenie »

Description:
Plugin allows you to block unrealistic and funny grenades behavior, when you have pulled out the cotter pin from them (in the red circle) and still you could change, pick up, buy a weapon and you had like a new grenade with new cotter pin. You could use all mechanisms, and defuse a bomb too! With one hand, almost impossible. No more unrealistic situations! With this plugin player when he will pull out cotter pin, he cant pick up nothing, buy nothing, use mechanisms/defuse a bomb, and change weapon (small advice, when you will use "invprev" or "invnext" grenade will be thrown automatic).

Added new version with grenade speed, when you will throw grenade quick after putting out the pin, you will throw it very close, cause u didnt had time to throw it harder. After some moment you will gain more power to throw it and you will do it a little better. After another moment you will have full power to throw it as far as you can.

Cvars:

You can change name of all cvars in .sma

- rgb 0 turn off the plugin
- rgb 1 turn on the plugin
- rgb 2 doesnt affect on admins (default ADMIN_IMMUNITY is needed), you can change it in .sma in "#define IMMUNITY" line

- rgb_speed 1 1 is turning on grenade speed manipulation, 0 turning off
- rgb_speedtime_1 a value in seconds after first speed point will be added(the most optimal is 0.8-0.9 cause pulling out the pin costs ~0.7 sec)
- rgb_speedtime_2 a value in seconds after next (2) and 3 speed point will be added, to gain all 3 points you need time from rgb_speedtime_1 + 2x rgb_speedtime_2
- rgb_bartime how long the progressbar will be shown when pulling out the pin (must be full number not fraction! if 0 turn off)
- rgb_speed_0 a value in percent (i mean 0.2 = 20%, 0.5 = 50% 1=100%) of throwing speed with 0 speed points (default 0.25 (25%) )
- rgb_speed_1 a value in percent (i mean 0.2 = 20%, 0.5 = 50% 1=100%) of throwing speed with 1 speed points (default 0.5 (50%) )
- rgb_speed_2 a value in percent (i mean 0.2 = 20%, 0.5 = 50% 1=100%) of throwing speed with 2 speed points (default 0.75 (75%) )
- rgb_speed_3 a value in percent (i mean 0.2 = 20%, 0.5 = 50% 1=100%) of throwing speed with 3 speed points (default 1 (100%) )

Credits/idea:

I dont know if such a plugin exist, i didnt saw any, idea and performance by me :>

Changelog:

1.0 - first idea
1.5 - made some fixes still local ^^
2.0 - done and posted
2.2 - updated with soccdoodcss tips
2.3 - small edit and converted from <engine> to <fakemeta>
2.5 - added new version (dont know if work properly for sure, someone must test it) with grenade speed, device idea, and X-olent help with script
2.7 - added cvars to all + added 'progressbar' from AlexBreems idea and fixed a small bug with pin

Works:

For sure works on counter strike 1.6, if someone want to, can check other similar games

get plugin
get source
Post Reply

Return to “Admin Commands”