Raised This Month: $51 Target: $400
 12% 

[TF2] On RPS Taunt, kill loosing person


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 07-23-2014 , 11:01   [TF2] On RPS Taunt, kill loosing person
Reply With Quote #1

Pretty simple:

I don't know if its possible, but if you loose from rock paper scissors, that it would actually kill that person that lost, or set on fire, explode, or whatever comes in mind ;)

You could even go as far then as setting a timer on it, and handing out rewards to winning rps people.

Just an idea though.
__________________
Arguing with a fool only proves there are two
snelvuur is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 07-23-2014 , 19:56   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #2

PHP Code:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1;

public OnPluginStart()
{
    
HookEvent("rps_taunt_event"Event_RpsTaunt);
}

public 
Event_RpsTaunt(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
winner GetClientUserId(GetEventInt(event"winner"));
    new 
winner_rps GetEventInt(event"winner_rps");
    new 
loser GetClientUserId(GetEventInt(event"loser"));
    new 
loser_rps GetEventInt(event"loser_rps");
    
//do somenthing


Last edited by arthurdead; 07-23-2014 at 20:06.
arthurdead is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-23-2014 , 21:52   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #3

I believe a simple sdkhooks_takedamage would do of they are on diff teams.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 07-24-2014 , 03:14   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #4

Ah thanks, that will do just fine
__________________
Arguing with a fool only proves there are two
snelvuur is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-24-2014 , 09:10   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #5

To clarify for those who find this thread later, the Rock-Paper-Scissors taunt already kills the losing player, assuming that the players are on opposite teams, and the loser does not have godmode or some other protection going on.
__________________

Last edited by ddhoward; 07-24-2014 at 09:10.
ddhoward is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-25-2014 , 06:32   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #6

Quote:
Originally Posted by friagram View Post
I believe a simple sdkhooks_takedamage would do of they are on diff teams.
Same teams, whatever, just make them hurt themselves
Follow by a fakeclientcommandex kill
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 07-25-2014 at 06:32.
friagram is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 07-25-2014 , 08:26   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #7

In case of the need for this, if you RPS with hale, it only does 9k damage max. So not killing him good enough.
__________________
Arguing with a fool only proves there are two
snelvuur is offline
arthurdead
Senior Member
Join Date: Jul 2013
Old 07-25-2014 , 10:50   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #8

Quote:
Originally Posted by friagram View Post
fakeclientcommandex kill
ForcePlayerSuicide(client); ?
arthurdead is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 05-24-2015 , 15:29   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #9

whats the difference between loser and loser_rps?
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-24-2015 , 23:02   Re: [TF2] On RPS Taunt, kill loosing person
Reply With Quote #10

Quote:
Originally Posted by DJ Data View Post
whats the difference between loser and loser_rps?
https://wiki.alliedmods.net/Team_For...ps_taunt_event
__________________
ddhoward 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 04:20.


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