I took the new Vampire mutator code, adjusted it slightly, and got it working on my local machine when doing a hosted game. I wasn't able to get the mutator to work on my dedicated server however.
I did a lot of searching, tried different things (added it to EditPackages & ServerPackages, etc.) and still coudn't get it to "fully" work.
I then unloaded all other mutators I had running on the server and it still didn't work.
On a hunch, I tried loading the Vampire mutator and got the exact same results, it wouldn't "fully" work.
Here's the deal though. They show up in the list in Webadmin. I can select them, then "set selected mutators", but when I restart the map, they always get unchecked and don't show up in the selected mutators list.
Any ideas on this one?
Announcement
Collapse
No announcement yet.
uscript help (easy) needed
Collapse
X
-
legacy-Airjrdn repliedI think I found the newer code, but the older code is much easier to understand.
Leave a comment:
-
Hsoolien repliedI think this code was originally written for UT99
None if it will work for 2004/2003... sorry
(there is no MitatorTakeDamage call or Damagemutators in UT2003/2004)
Leave a comment:
-
legacy-Airjrdn started a topic uscript help (easy) neededuscript help (easy) needed
During ucc make I get this error on the code below:
Code:Analyzing... Parsing bVampire Compiling bVampire C:\UT2004\bVampire\Classes\bVampire.uc(22) : Error, Bad or missing expression in 'If' Compile aborted due to errors. Failure - 1 error(s), 0 warning(s)
Code:class bVampire extends 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 (InstigatedBy.IsA('Bot') || InstigatedBy.IsA('PlayerPawn')) { InstigatedBy.Health += ActualDamage; if (InstigatedBy.Health > 199) InstigatedBy.Health = 199; } if (NextDamageMutator != None) NextDamageMutator.MutatorTakeDamage( ActualDamage, Victim, InstigatedBy, HitLocation, Momentum, DamageType ); } defaultproperties { GroupName="bVampire" FriendlyName="bVampire" Description="bVampire" }
Tags: None
Leave a comment: