Raised This Month: $208 Target: $400
 52% 

FF2 [Plugin] RPS 4 Points


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 06-20-2015 , 22:58   [Plugin] RPS 4 Points
Reply With Quote #1

Tired of RPS being useless against same-team players?

With RPS 4 Points, teammates (or minions) can RPS for queue points, provided they have the minimum queue points required to gamble.

  • Convars
    • rps4points_version - Version Number
    • rps4points_slay_boss - OPTIONAL: Should boss be slayed if boss loses to RPS? (default: 0)
      • 1: Slay boss
      • 0: Normal RPS damage
    • rps4points_updater - OPTIONAL: Autoupdate? (requires updater) (default: 0)
      • 1: Enable updater support
      • 0: Disable updater support
    • rps4points_points - Minimum amount of points needed to "gamble". Also points awarded to winner and removed from loser (default: 10).

Many thanks to Wliu for helping me check for errors on translations file & Super_burrito22 for helping me test this plugin. This should work for any FF2 version.
Attached Files
File Type: smx rps4points.smx (12.3 KB, 312 views)
File Type: sp Get Plugin or Get Source (rps4points.sp - 280 views - 5.2 KB)
File Type: txt rps4points.phrases.txt (189 Bytes, 332 views)
__________________

Last edited by SHADoW NiNE TR3S; 09-17-2015 at 16:07.
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
sarysa
Senior Member
Join Date: Mar 2014
Old 06-22-2015 , 15:00   Re: [Plugin] RPS 4 Points
Reply With Quote #2

Pretty cool. You should consider having the winner ping the client so they get credit. If you don't want to pass a variable package (forgot what it's called) to the timer you could use bitwise to pass it. i.e. ((killer<<16) | victim) Just a call to SDKHooks_TakeDamage() is enough to give the RPS winner kill credit. (if the killer is still valid)

Or do they get credit already due to the 3.1 timer?
__________________

Last edited by sarysa; 06-22-2015 at 15:01.
sarysa is offline
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 06-22-2015 , 15:20   Re: [Plugin] RPS 4 Points
Reply With Quote #3

Quote:
Originally Posted by sarysa View Post
Pretty cool. You should consider having the winner ping the client so they get credit. If you don't want to pass a variable package (forgot what it's called) to the timer you could use bitwise to pass it. i.e. ((killer<<16) | victim) Just a call to SDKHooks_TakeDamage() is enough to give the RPS winner kill credit. (if the killer is still valid)

Or do they get credit already due to the 3.1 timer?
The credit for the kill comes from this:

Code:
	if(IsBoss(client) && RPSLoser[client] && GetConVarBool(cvarKillBoss))
	{
		event.SetInt("attacker", GetClientUserId(RPSWinner));
	}
The 3.1 timer was to allow the RPS losing animations to play before slaying the boss (i was originally using SDKHooks_TakeDamage originally but that didn't work for some odd reason).
__________________

Last edited by SHADoW NiNE TR3S; 06-22-2015 at 15:22.
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
MaloModo
Veteran Member
Join Date: Aug 2008
Old 06-24-2015 , 11:49   Re: [Plugin] RPS 4 Points
Reply With Quote #4

@shadow9 Cheers for this mate! Much needed and welcomed.
__________________
www.anticheatgamers.com - The REAL Gaming Experience.
MaloModo is offline
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 09-17-2015 , 16:11   Re: [Plugin] RPS 4 Points
Reply With Quote #5

Plugin should continue to work fine on FF2 v2.0 (it's release date being around the same time as Half-Life 2: Episode 3's release)

Just a changelog:

v1.1:
  • Now uses SDKHooks_TakeDamage to perform the boss slay
  • Due to the above, player damage is counted for the RPS kill.
  • Thanks to Deathreus for helping me test.

Have a good day.
__________________

Last edited by SHADoW NiNE TR3S; 09-17-2015 at 16:13.
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
Wliu
Veteran Member
Join Date: Apr 2013
Location: N/A
Old 09-17-2015 , 21:12   Re: [Plugin] RPS 4 Points
Reply With Quote #6

Quote:
Originally Posted by SHADoW NiNE TR3S View Post
Plugin should continue to work fine on FF2 v2.0 (it's release date being around the same time as Half-Life 2: Episode 3's release)

Just a changelog:

v1.1:
  • Now uses SDKHooks_TakeDamage to perform the boss slay
  • Due to the above, player damage is counted for the RPS kill.
  • Thanks to Deathreus for helping me test.

Have a good day.
I'm aiming more for it to coincide with the release of HL3 .
__________________
~Wliu
Wliu 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 08:19.


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