AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Grenade Enhancer Lite * Update v1.2 (Jan,22-2009) (https://forums.alliedmods.net/showthread.php?t=83872)

HiSS 01-16-2009 19:52

Grenade Enhancer Lite * Update v1.2 (Jan,22-2009)
 
2 Attachment(s)
Hi, I was boring and decide to customize and fix and already made plugin accorded to my needs.

Updated v1.2 Released (Jan,22-2009)
Changes: Code optimization.

This plugin simply adds new effects and sounds to the grenade explosions like the original.

I've done nothing new, I know, simply reorganized the code, removed some features and fixed a little bug with the sound, it still sound if you hurt someone though you're far. I added a new cvar for sound and edited the sound file (volume, time and equalized).

* Features:

- Red screenflash
- Screen shake
- Annoying sound

* Cvars (All cvars: 1 = Enabled | 0 = Disabled):

grenade_enhancer 0/1 Default: 1 - Enable/Disable the plugin.
grenade_enhancer_screenflash 0/1 - Default: 1 Enable/Disable red screenflash effect.
grenade_enhancer_sound 0/1 Default: 1 - Enable/Disable the sound.
grenade_enhancer_shake 0/1 Default: 1 - Enable/Disable screen shake.

I attached the plugin, source code and sound file (added the plugin file too for the webcompiler issues):

Put the file into your "./addons/amxmodx/plugins/" folder.
Add grenade_ehanancer_lite.amxx into your "./addons/amxmodx/configs/plugins.ini" file.
You can add the cvars into your "./addons/amxmodx/configs/amxx.ini" file.
Place the sound "player_he_damage.wav" into "sounds/player/" folder.

- Credits:

- anakin_cstrike - The Original Plugin
- ilham92-cc-sakura - plugin with sound
- arkshine - help optimizing code
- HiSS - it's me!

- Modules required:

-csx

Tested in Counter-Strike 1.6 AMXX 1.8.1 and works fine, please report any bug/error.
Compiled with 0 errors/0 warnings.
No compatibility issues with another plugin reported yet.

I am totally noob scripting/coding, so I don't expect this be approved.

Sorry for my english.

Greetings.

DarkGod 01-16-2009 20:00

Re: Grenade Enhancer Lite (Fixed)
 
Remove the .amxx and upload .zip instead of .rar...

Will try this when I can. :)

bomnacama 01-16-2009 20:01

Re: Grenade Enhancer Lite (Fixed)
 
remove the amxx file, you have the sma alredy. seems a nice plugin

YamiKaitou 01-16-2009 22:36

Re: Grenade Enhancer Lite (Fixed)
 
AMXX file and SMA file removed from the RAR file. Please convert the RAR file to ZIP format.

SnoW 01-17-2009 06:08

Re: Grenade Enhancer Lite (Fixed)
 
Quote:

Originally Posted by HiSS (Post 745476)
Modification: ALL Category: Admin Commands


crazyeffect 01-17-2009 06:32

Re: Grenade Enhancer Lite (Fixed)
 
Quote:

Add grenade_ehanancer_lite.amxx into your "./addons/amxmodx/plugins/configs/plugins.ini" file.
You can add the cvars into your "./addons/amxmodx/plugins/configs/amxx.ini" file.
It needs to be:
- Add grenade_ehanancer_lite.amxx into your "addons/amxmodx/configs/plugins.ini" file. (Not plugins/configs, just amxmodx/configs)
- You can add the cvars into your "addons/amxmodx/configs/amxx.ini" file. (Not plugins/configs, just amxmodx/configs)

Arkshine 01-17-2009 06:37

Re: Grenade Enhancer Lite (Fixed)
 
Some suggestions :

- You can merge all cvars in one.
- Since the the damage event can be called often, you should cache the value of is_user_connected()/is_user_bot().
- Cache the value of ScreenFade/ScreenShake.
- MSG_ONE -> MSG_ONE_UNRELIABLE
- No need to 'copy' and 'replace', use SOUND directly.

Joker4ever 01-17-2009 06:50

Re: Grenade Enhancer Lite (Fixed)
 
Nice plugin for realism , GJ ;)

HiSS 01-17-2009 11:15

Re: Grenade Enhancer Lite (Fixed)
 
Hi, thanks for reply.

I deleted the .amxx file and change the format to zip.
Changed modification to counter-strike, general purpose.
Corrected the directories in first post. (my bad)

Quote:

Some suggestions :

- You can merge all cvars in one.
- Since the the damage event can be called often, you should cache the value of is_user_connected()/is_user_bot().
- Cache the value of ScreenFade/ScreenShake.
- MSG_ONE -> MSG_ONE_UNRELIABLE
- No need to 'copy' and 'replace', use SOUND directly.
Thank you I'll try it for v1.1.

Greetings.

quicksuper 01-17-2009 13:41

Re: Grenade Enhancer Lite (Fixed)
 
This plugin sounds cool. I gonna try it out :)


All times are GMT -4. The time now is 20:45.

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