Raised This Month: $95 Target: $400
 23% 

Grenade Enhancer Lite * Update v1.2 (Jan,22-2009)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
HiSS
Member
Join Date: Nov 2008
Location: Celtic Gallaecia
Old 01-16-2009 , 20:52   Grenade Enhancer Lite * Update v1.2 (Jan,22-2009)
Reply With Quote #1

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.
Attached Files
File Type: zip sound.zip (139.1 KB, 3460 views)
File Type: sma Get Plugin or Get Source (grenade_enhancer_lite.sma - 4464 views - 1.7 KB)
__________________
[IMG]http://img227.**************/img227/3148/celeritasetsubtilitasuw0.jpg[/IMG]

Last edited by HiSS; 01-22-2009 at 15:03. Reason: Update v1.2
HiSS is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-16-2009 , 21:00   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #2

Remove the .amxx and upload .zip instead of .rar...

Will try this when I can.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 01-16-2009 , 21:01   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #3

remove the amxx file, you have the sma alredy. seems a nice plugin
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-16-2009 , 23:36   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #4

AMXX file and SMA file removed from the RAR file. Please convert the RAR file to ZIP format.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-17-2009 , 07:08   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #5

Quote:
Originally Posted by HiSS View Post
Modification: ALL Category: Admin Commands
SnoW is offline
Send a message via MSN to SnoW
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-17-2009 , 07:32   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #6

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)
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-17-2009 , 07:37   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #7

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.
Arkshine is offline
Joker4ever
Member
Join Date: Dec 2008
Old 01-17-2009 , 07:50   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #8

Nice plugin for realism , GJ ;)
Joker4ever is offline
HiSS
Member
Join Date: Nov 2008
Location: Celtic Gallaecia
Old 01-17-2009 , 12:15   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #9

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.
__________________
[IMG]http://img227.**************/img227/3148/celeritasetsubtilitasuw0.jpg[/IMG]
HiSS is offline
quicksuper
Member
Join Date: Dec 2008
Old 01-17-2009 , 14:41   Re: Grenade Enhancer Lite (Fixed)
Reply With Quote #10

This plugin sounds cool. I gonna try it out
quicksuper is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:25.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode