Raised This Month: $ Target: $400
 0% 

Relative FriendlyFire v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-10-2010 , 07:35   Relative FriendlyFire v1.2
Reply With Quote #1

Relative FriendlyFire
(Version 1.2 | Author: unny;)



INFORMATIONS
Randomly changes the value of damage done to your teammates on each attack.


CVARs
  • rff_status <0/1> (default: 1) - disable / enable the plugin
  • rff_max_multiplier <float> (default: 5.0) - maximum damage multiplier allowed
  • rff_announce <0/1> (default: 1) - print informations about the plugin

REQUIREMENTS
  • Counter-Strike 1.6 Server
  • HamSandwich module enabled

CREDITS
  • DarkGod - major improvements

CHANGELOG
Code:
v1.0 - first release
v1.1 - added HamSandwich module
v1.2 - added 'rff_announce' cvar
TODO
  • waiting for suggestions ^^

NOTES
  • I know that the source-code is not as big / long as you'd expected, but.. ^^
Attached Files
File Type: sma Get Plugin or Get Source (relative_friendlyfire.sma - 1088 views - 2.4 KB)
__________________

Last edited by unnyquee; 05-17-2010 at 13:16.
unnyquee is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-10-2010 , 08:00   Re: Relative FriendlyFire v1.0.0
Reply With Quote #2

We always expect the code to be as short and efficient as possible. You don't have to create a new variable to store the random integer result. Do it directly in the native.

Anyway, useless.
__________________
hleV is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-10-2010 , 08:02   Re: Relative FriendlyFire v1.0.0
Reply With Quote #3

Useless, from your point of view ^^.
I know, but maybe someone will use it
__________________
unnyquee is offline
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 05-10-2010 , 09:15   Re: Relative FriendlyFire v1.0.0
Reply With Quote #4

Mhm, it is a short plugin. But every plugin (thought) can be used in any situation
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...
ServO is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-10-2010 , 12:08   Re: Relative FriendlyFire v1.0.0
Reply With Quote #5

Please remove :

register_cvar("rff_version", VERSION, FCVAR_SERVER|FCVAR_SPONLY);
set_cvar_string("rff_version", VERSION);

Cvars list in HLSW don't need that one IMO.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-10-2010 , 12:15   Re: Relative FriendlyFire v1.0.0
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Please remove :

register_cvar("rff_version", VERSION, FCVAR_SERVER|FCVAR_SPONLY);
set_cvar_string("rff_version", VERSION);

Cvars list in HLSW don't need that one IMO.
-2 lines
__________________
Retired.
Xalus is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-10-2010 , 12:18   Re: Relative FriendlyFire v1.0.0
Reply With Quote #7

Why you create only these random chance plugins
__________________
xPaw is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-10-2010 , 12:46   Re: Relative FriendlyFire v1.0.0
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
Please remove :

register_cvar("rff_version", VERSION, FCVAR_SERVER|FCVAR_SPONLY);
set_cvar_string("rff_version", VERSION);

Cvars list in HLSW don't need that one IMO.
@ Connor & Xalus: I know, but I had written those to monitor the plugin usage or stuff

@ xPaw: yeah, weird, but ^^ I think it may be lack of inspiration? Or.. I kinda like those random chance plugins
__________________
unnyquee is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 05-10-2010 , 13:12   Re: Relative FriendlyFire v1.0.0
Reply With Quote #9

You can get a random float instead and the damage made to teammates will be damage * random.

Just a suggestion to make it a bit less basic than what it is now.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-10-2010 , 13:13   Re: Relative FriendlyFire v1.0.0
Reply With Quote #10

Great suggestion
I will write this in the next version.
__________________
unnyquee is offline
Reply



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 11:03.


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