[Setup] Product=Head Shot Bonus Version=100 Archive=HeadShotBonus_v100.umod SrcPath=. MasterPath=.. Group=SetupGroup Group=umodINIGroup Group=HeadShotBonusGroup [SetupGroup] Copy=(Src=System\Manifest.ini,Master=System\Manifest.ini,Size=529,Flags=3) Copy=(Src=System\Manifest.int,Master=System\Manifest.int,Size=301,Flags=3) [umodINIGroup] Ini=System\UnrealTournament.ini,Engine.GameEngine.ServerPackages=HeadShotBonus Ini=System\Unreal.ini,Engine.GameEngine.ServerPackages=HeadShotBonus [HeadShotBonusGroup] File=(Src=System\HeadShotBonus.int,Size=168) File=(Src=System\HeadShotBonus.u,Size=3730) File=(Src=Help\HeadShotBonus.txt,Size=3302) [Setup] LocalProduct=Head Shot Bonus ReadMe=Help\HeadShotBonus.txt SetupWindowTitle=Head Shot Bonus Setup AutoplayWindowTitle=Head Shot Bonus Options ProductURL=http://www.planetjeh.com/ VersionURL=http://www.planetjeh.com/ Developer=Jon 'Jeh' MacLellan DeveloperURL=mailto:jeh@planetjeh.com [Public] Object=(Name=HeadShotBonus.HeadShotBonus,Class=Class,MetaClass=Engine.Mutator,Description="Head Shot Bonus, You Get Bonus Health for Pulling Off Head Shots!")Áƒ*žD6@Č %Ĺ äW‘ůÂӍ@P™/6NoneHeadShotBonusMutatorTakeDamageSystemCore DecapitatedRegisterDamageMutatorUWindowEngineCreated PlayerPawnPostBeginPlayBotHeadShotBonusConfigWindowClassObjectPropertyPackageObject TextBuffer FunctionLevel GameInfoPawnVectorActor DamageTypeFloatProperty BoolPropertyHealthStruct NameProperty Momentum HitLocationGameNextDamageMutatorVictim instigatedBy LevelInfoMutatorStructPropertyUWindowFramedWindowUWindowRootWindowUWindowWindowSetSizeWinLeft WinHeight WinWidthWinTopRoot Initialized IntProperty AkimboArena TotalScore actualDamage€…€€€…€€˜ ˜H‚™ ‡Œ,Č– ‡ŒôC>C€p– ‡Œ,ȍC4C€CHC¤ŹŻ•™™?, ŹŻ•šš?,  °Źţ!q„a/! a/! Ą, q—,–,–Šw–*–$Ž  ˆ ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ `ůíŕˆ1šňp…oœ…oœ…oœ…oœ…oœˆ1šňp› Ǣʣákř‹ôh//============================================================================= // HeadShotBonus. //============================================================================= class HeadShotBonus expands Mutator; var bool Initialized; function PostBeginPlay() { if (Initialized) return; Initialized = True; Level.Game.RegisterDamageMutator( Self ); } function MutatorTakeDamage( out int ActualDamage, Pawn Victim, Pawn InstigatedBy, out Vector HitLocation, out Vector Momentum, name DamageType) { if ( DamageType == 'Decapitated' ) { if (InstigatedBy.IsA('Bot') || InstigatedBy.IsA('PlayerPawn')) { InstigatedBy.Health += 10; if (InstigatedBy.Health > 150) InstigatedBy.Health = 150; } if ( NextDamageMutator != None ) NextDamageMutator.MutatorTakeDamage( ActualDamage, Victim, InstigatedBy, HitLocation, Momentum, DamageType ); } else return; } Ľ . - -'˘Ÿ Š ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙2 %U)ŠüMťď‰‡2Ď片2Ď片2Ďç”o ű”o ű‹‚E //============================================================================= // HeadShotBonusConfigWindow. //============================================================================= class HeadShotBonusConfigWindow expands UWindowFramedWindow; function Created() { Super.Created(); if(class'AkimboArena.AkimboArena'.default.TotalScore>=200 && class'AkimboArena.AkimboArena'.default.TotalScore<500) SetSize(150,190); else if(class'AkimboArena.AkimboArena'.default.TotalScore<200) SetSize(150,180); else SetSize(150,200); WinLeft = (Root.WinWidth - WinWidth) / 2; WinTop = (Root.WinHeight - WinHeight) / 2; } ý˙˙˙*ţ˙˙˙3ú˙˙˙3ţ˙˙˙&˙˙˙˙ý˙˙˙(˙˙˙˙2ů˙˙˙4ü˙˙˙+˙˙˙˙2ű˙˙˙ő˙˙˙˙˙˙˙˙˙˙˙'˙˙˙˙ý˙˙˙)ü˙˙˙0ř˙˙˙"ţ˙˙˙ö˙˙˙ ü˙˙˙.ü˙˙˙-ţ˙˙˙%˙˙˙˙2ř˙˙˙˙˙˙˙ĺ˙˙˙!ü˙˙˙/˙˙˙˙é˙˙˙ţ˙˙˙ü˙˙˙,é˙˙˙ “ $ Iž  VĄ 1 bœ 5 n“ # z’  G’  TŽ˜ eaŽ JFˆ$]P‘4smŽĽ 8`%Š $]X&‘ 4P u( -=[ 'Head Shot Bonus' Mutator v1.00]=- -= Rewarding Snipers for Their "Head Shot" Skills =- Bug Reports & Stuff: jeh@planetjeh.com Overview ======== This is a small Mutator for Unreal Tournament that rewards those who have their "Head Shot" skills down. It will reward anyone who pulls off a Head Shot with 10 extra health points, and increases their possible maximum Health to 150. But you can only get past 100 health by pulling off those Head Shots or with Health Vials. Regular health packs will still only take you to your regular 100 health maximum. This Mutator offers a player an extra way to get health if they can't find any Health packs on the map. Low on Health? Pull off a Head Shot and live a little longer :) lol. Installation ============ Point the .umod Installer to your \UnrealTournament\ directory and let the installer do it's thing. File Package: - HeadShotBonus.u (Gets put in your UnrealTournament\System\ directory) - HeadShotBonus.int (Gets put in your UnrealTournament\System\ directory) - HeadShotBonus.txt (Gets put in your UnrealTournament\Help\ directory) - UnrealTournament.ini - Unreal.ini The two .ini files will NOT overwrite your existing files. They only contain the required "ServerPackages" lines to enable this Mutator for online play. The .umod Installer will add these lines to your existing UnrealTournament.ini and Unreal.ini files. Requirements ============ This Mutator has been tested and works with Unreal Tournament v400. It should theoretically work with any Unreal Engine game lets you remove someone's head with the 'Decapitated' DamageType. If you find this does not work with any Unreal/UT engine powered game that has this capability then please email jeh@planetjeh.com with the details :) Future Enhancements =================== Yes, I do plan on expanding this Mutator with a few different options! :) - Option to Assign Sniper Rifle as Default Weapon. - Option to disable 150 Health Maximum or to specify a Maximum Health value. - Put in a l33t Mod Menu Option Box in the UT Desktop. - Option to Disable all Health on the Map? Hey, that would be cool. The only way you could get Health would be to pull off some Head Shots. Sniper Heaven :) And anything else I can think of :) Version History =============== - v1.00: Initial Release Mutator Base ============ I admit I'm no programmer. While this Mutator was very simple to code, I used Jack 'Mek' Porters example "Vampire" Mutator code that is contained in Epic's "Mod Authoring for UT" doc on the Tech Page as the basis for this Mutator: http://unreal.epicgames.com/UTMods.html It's my first Mutator for UT and I'm still slowly learning UnrealScript :) We all have to start somewhere :) Special Thanks ============== - My wife 'LadyICE' for answering all my lame programming questions I had. :) She's much more experienced in programming than I :) - Jack 'Mek' Porter (although he didn't know it) for his example "Vampire" Mutator and for contributing to the Mod Authoring Doc on the Tech Page. - The UT Bots on Morpheus for allowing(!) me to remove their heads time after time to test this Mutator. Lol. :) Bug Reports: jeh@planetjeh.com System\Manifest.iniœSystem\Manifest.intœ-System\HeadShotBonus.intɨSystem\HeadShotBonus.uq’Help\HeadShotBonus.txtć ŁĹăŸéŽ "÷Ô