This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Unleash the Rage!


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-30-2009 , 11:23   Re: Unleash the Rage!
Reply With Quote #11

PHP Code:
public eSpawn(index)
{
      
g_bIsEnraged[index] = false;
      
_resetRage(index);
}

public 
client_disconnect(index)
{
      
g_bIsEnraged[index] = false;
      
_resetRage(index);
}

public 
client_connect(index)
{
      
g_bIsEnraged[index] = false;
      
_resetRage(index);

You're calling the func here without any + 123
__________________
xPaw is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 10-30-2009 , 12:06   Re: Unleash the Rage!
Reply With Quote #12

Yes, because these function aren't called through tasks
__________________
unnyquee is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-17-2009 , 14:30   Re: Unleash the Rage!
Reply With Quote #13

Code:
RegisterHam(Ham_Spawn, "player", "eSpawn");
You should register it as post hook and check is_user_alive().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-18-2009 , 07:02   Re: Unleash the Rage!
Reply With Quote #14

Solved
__________________
unnyquee is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-18-2009 , 07:43   Re: Unleash the Rage!
Reply With Quote #15

Start making cvars. so you can almost control evry lil thingy of it.
__________________
I am out of order!
grimvh2 is offline
Anonymous
Member
Join Date: Nov 2009
Location: Anonuser.org
Old 11-18-2009 , 18:17   Re: Unleash the Rage!
Reply With Quote #16

Simple but effective.
+k
__________________
This site is filled with shitters who call themselves experts.
Anonymous is offline
rumbeto
Member
Join Date: Feb 2007
Old 12-24-2009 , 11:11   Re: Unleash the Rage!
Reply With Quote #17

It would be great if you make this plugin so every utr_ragefrags frags you get raged. For example: every 5 frags you get raged. Or maybe set a cvar to have a choice to do that.
rumbeto is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-24-2009 , 14:15   Re: Unleash the Rage!
Reply With Quote #18

yeah it will be cool, and may be make a cvar to choose an effect? (glow or trail, cause glow is not beautiful)
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
orange
Senior Member
Join Date: Dec 2005
Old 12-25-2009 , 00:58   Re: Unleash the Rage!
Reply With Quote #19

this plugin with csdm caused many issues for me when it was first made but i did not save error logs, cool idea tho.
__________________
orange is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2010 , 00:30   Re: Unleash the Rage!
Reply With Quote #20

1. If a rage player switches weapons, their speed will be returned to normal.

2. If a player becomes "raged", the next round the player's speed will be put to 250.
That is wrong:
a. If there is freezetime, that player will be able to move.
b. That player could be holding a weapon that has a different speed than 250.
You should just remove the speed setting.

3. Remove the cvar and boolean checks in _setRage.
It is only called when it is needed and those checks are made already before the function is called.

4. You don't need to make every function "public".
Only public functions should be hooks/forwards/handlers.

5. In the health regen task, you should check if player is alive before getting health.

6. The reset rage task requires the player's index + 123 to the function.
You need to add 123 to the player's index when you call the function.

Approval pending on changes.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 16:43.


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