Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE3:UT MDB GR Bloodlust (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 11:10, 16 January 2010 by 00zX (Talk | contribs) (Created page with '==Introduction== ==Code== {{Infobox class | package = UT_GDP_Newtators | class = UT_MDB_GR_Bloodlust | game = UT3 | engine = UE3 | custom = yes | parent1 = UT_MDB_GameRu…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Code

UT3 UT_MDB >> UT_MDB_GameRules >> UT_MDB_GR_Bloodlust (custom)
Package: 
UT_GDP_Newtators

Script

//===================================================
//	Class: UT_MDB_GR_Bloodlust
//	Creation date: 18/12/2007 04:30
//	Last updated: 08/09/2009 21:06
//	Contributors: 00zX
//---------------------------------------------------
//	Attribution-Noncommercial-Share Alike 3.0 Unported
//	http://creativecommons.org/licenses/by-nc-sa/3.0/
//===================================================
class UT_MDB_GR_Bloodlust extends UT_MDB_GR_Vampire;
 
function int DamageTaken(UT_GR_Info.EnemyInfo Enemy, optional pawn Injured)
{
	if(Enemy.Type == ET_Infantry)
		if(UTInventoryManager(Enemy.Pawn.InvManager).HasInventoryOfClass(class'UT_GDP_Newtators.UT_TPG_VDamage') != None)
			Super.DamageTaken(Enemy, Injured);
 
//	return Super(UT_MDB_GameRules).DamageTaken(Enemy, Injured);
	return Enemy.Damage;
}
/*
function bool OverridePickupQuery(Pawn Other, class<Inventory> ItemClass, Actor Pickup, out byte bAllowPickup)
{
	local UTInventoryManager InvMgr;
 
	InvMgr = UTInventoryManager(Other.InvManager);
 
	if(Pickup != None && UTPawn(Other) != None)
	{
		if(InvMgr.HasInventoryOfClass(class'Newtators.UTVDamage') != None)
		{
			if(Pickup.IsA('UTPickupFactory_HealthVial') ||
				Pickup.IsA('UTPickupFactory_SuperHealth') ||
				Pickup.IsA('UTPickupFactory_MediumHealth'))
					return true;
		}
	}
 
	if((NextGameRules != None) &&  NextGameRules.OverridePickupQuery(Other, ItemClass, Pickup, bAllowPickup))
		return true;
 
	return false;
}*/
 
defaultproperties
{
	bUseSuperHealth=True
}