Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

TribesTVStudio.TribesTVStudioActionVS_GR


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
class TribesTVStudioActionVS_GR extends GameRules;

var TribesTVStudioActionVS reportTo;

//add rating for people fighting
function int NetDamage( int OriginalDamage, int Damage, pawn injured, pawn instigatedBy, vector HitLocation, vector Momentum, class<DamageType> DamageType )
{
	if(instigatedBy.PlayerReplicationInfo!=none)
		reportTo.AddRating(instigatedBy.PlayerReplicationInfo.playerId,damage);
	if(injured.PlayerReplicationInfo!=none)
		reportTo.AddRating(injured.PlayerReplicationInfo.playerId,damage);

	if ( NextGameRules != None )
		return NextGameRules.NetDamage( OriginalDamage,Damage,injured,instigatedBy,HitLocation,Momentum,DamageType );
	else 
		return Damage;
}

//lower rating for someone just killed
function ScoreKill(Controller Killer, Controller Killed)
{
	if(killed.PlayerReplicationInfo!=none)
		reportTo.AddRating(killed.PlayerReplicationInfo.playerId,-200);

	if ( NextGameRules != None )
		NextGameRules.ScoreKill(Killer,Killed);
}

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 15:53:56.000 - Creation time: st 23.5.2018 00:10:48.931 - Created with UnCodeX