AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] NadeShake (https://forums.alliedmods.net/showthread.php?t=139646)

VoGon 10-03-2010 12:44

[CS:S] NadeShake
 
1 Attachment(s)
Video
-----------

HERE

Description

-----------
Makes the screen of players that have been damaged by hegrenades shake.

There are 2 possibilities, constant shake amount or shake by damage inflicted by changing sm_nadeshake_nadedmg

This is my fist attempt at coding a plugin so be gentle... :D

Configuration
-------------
sm_nadeshake_enable 1 / 0 to enable/disable NadeShake - Defaults to on
sm_nadeshake_nadedmg 1 / 0 to enable/disable NadeShake by damage inflicted - Defaults to on

Plugin autocreates sm_nadeshake.cfg in cfg/sourcemod directory

Requirements
------------
Counter-Strike: Source
SourceMod 1.3

Installation

------------,9
Download the smx file and extract into your /cstrike/addons/sourcemod/plugins/ directory.

Restart server or change map for plugin to activate and autocreate cfg/sourcemod/sm_nadeshake.cfg.

Credits
-------
Big thanks to Altex for his support and for showing me some stuff I was too noob to know.

V0gelz for his shake stock.

Bacardi for the damage inflicted code and for being Bacardi that is always there ;)

bouncer 10-03-2010 12:59

Re: NadeShake
 
video?

VoGon 10-03-2010 13:00

Re: NadeShake
 
Will upload one as soon as possible.

honorcode23 10-03-2010 13:31

Re: NadeShake
 
One suggestion, dont take it personal i just want to help :P.

this part of the code
Code:

if(StrEqual(Weapon,"hegrenade")== true)
That == true isnt really necessary, as it is if(1==1) :P.

Code:

if(StrEqual(Weapon,"hegrenade"))
That's better :).

VoGon 10-03-2010 13:32

Re: NadeShake
 
Quote:

Originally Posted by honorcode23 (Post 1314787)
One suggestion, dont take it personal i just want to help :P.

this part of the code
Code:

if(StrEqual(Weapon,"hegrenade")== true)
That == true isnt really necessary, as it is if(1==1) :P.

Code:

if(StrEqual(Weapon,"hegrenade"))
That's better :).


I never take it personal ;) thanks!

VoGon 10-03-2010 14:04

Re: NadeShake
 
Also video added

M249-M4A1 10-03-2010 15:16

Re: NadeShake
 
A simple and nice plugin, great!

GrO 10-04-2010 08:21

Re: NadeShake
 
Yey, I'm gonna use it on my server, thanks for nice plugin.

Bacardi 10-04-2010 16:48

Re: NadeShake
 
Hahaha, this look more realistic now. Have to try this also on server.

*edit
So now, players what take any dmg from he-grenade take that same amount shake effect (50.0)
Not big deal and works great.

I edit and tested using dmg-amount to give that shake effect instead that default 50.0, I like it that way.
- What bigger is damage, bigger is shake and vice versa, smaller damage, small shake :3


[out of topic]
I manage to hurt myself with he-grenade 94dmg with no-kevlars :O
and have disabled old grenade system
Code:

"sv_legacy_grenade_damage" = "0"
 game replicated
 - Enable to replicate grenade damage behavior of the original Counter-Strike Source game.
"

*second edit
You sould start make other plugin about headshot shake :mrgreen:

VoGon 10-05-2010 05:11

Re: NadeShake
 
Thx for the comments guys!

@Bacardi - The shaking based on damage is actually a good idea ;)


All times are GMT -4. The time now is 08:06.

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