Gah - a solution with more questions. – EntropicLqd
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…')
Introduction
Code
UT_MDB >> UT_MDB_GameRules >> UT_MDB_GR_Bloodlust (custom) |
Contents
- 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 }