class DeepFreeze extends xDeathMatch; function AddGameSpecificInventory(Pawn playerOrBot) { local Weapon newWeapon; newWeapon = Spawn(class'FreezeGun.FreezeGun',,,playerOrBot.Location); if( newWeapon != None ) { newWeapon.GiveTo(playerOrBot); newWeapon.bCanThrow = false; // don't allow default weapon to be thrown out } } function AddDefaultInventory( pawn PlayerOrBot ) { local Weapon newWeapon; local class WeapClass; WeapClass = class'FreezeGun.FreezeGun'; if( (WeapClass!=None) && (PlayerOrBot.FindInventoryType(WeapClass)==None) ) { newWeapon = Spawn(class'FreezeGun.FreezeGun',,,PlayerOrBot.Location); if( newWeapon != None ) { newWeapon.GiveTo(PlayerOrBot); newWeapon.bCanThrow = false; // don't allow default weapon to be thrown out } } SetPlayerDefaults(PlayerOrBot); } defaultproperties { GameName="Deep Freeze" }