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

Betrayal.BetrayalSuperShockRifle


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
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
/******************************************************************************
BetrayalSuperShockRifle

Creation date: 2010-05-19 12:22
Last change: $Id$
Copyright (c) 2010, Wormbo
******************************************************************************/

class BetrayalSuperShockRifle extends SuperShockRifle hidedropdown;


simulated function PostBeginPlay()
{
	// sanity check: are we actually running Betrayal?
	if (Level.GRI != None && BetrayalGRI(Level.GRI) == None)
		FireModeClass[1] = FireModeClass[0];
	Super.PostBeginPlay();
}


/**
Use altfire to betray team mates.
*/
function byte BestMode()
{
	local Bot B;
	local BetrayalGame Game;

	Game = BetrayalGame(Level.Game);
	B = Bot(Instigator.Controller);
	if (B != None && Game != None && Game.OnSameTeam(Instigator, B.Enemy))
		return 1;

	return 0;
}


//=============================================================================
// Default values
//=============================================================================

defaultproperties
{
	FireModeClass(0) = BetrayalSuperShockBeamFire
	FireModeClass(1) = BetrayalSuperShockBeamAltFire
	AttachmentClass  = BetrayalShockAttachment

	ItemName = "Betrayal Instagib Rifle"
	PickupClass = class'BetrayalSuperShockRiflePickup'
}


Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 18.3.2011 18:33:50.000 - Creation time: Do 14.8.2014 09:58:35.056 - Created with UnCodeX