Greetings, trying to hide weapon bases of some pickups but whatever i do, the weapon bases dont get removed from the game. was guessing its because there bstatic or somthing. i ripped the code out of the instagib mutator as this does what i want but for some reason its not working. the code im trying to make just removes certain pickups and that all works fine but removign the pickup bases at all even using the instagib code with no changes doesnt want to work.. think i must of missed somthing
code i ripped was.. (in mutator class)
any thoughts on what iv missed out? or another way of doing it, TAM does it too but those changes are also in the playerclass and was hoping not to touch thoseCode:simulated function BeginPlay () { local xPickUpBase P; local Pickup L; foreach AllActors(Class'xPickUpBase',P) { P.bHidden = True; if ( P.myEmitter != None ) { P.myEmitter.Destroy(); } } foreach AllActors(Class'Pickup',L) { if ( L.IsA('WeaponLocker') ) { L.GotoState('Disabled'); } } Super.BeginPlay(); } function bool CheckReplacement (Actor Other, out byte bSuperRelevant) { if ( Other.IsA('Pickup') ) { if ( Other.bStatic || Other.bNoDelete ) { Other.GotoState('Disabled'); } return False; } bSuperRelevant = 0; return True; } defaultproperties { bNetTemporary=True bAlwaysRelevant=True RemoteRole=2 }
thanks![]()



Reply With Quote



Bookmarks