- Posts: 53
FreezeMutators
- Deep Freeze
-
Topic Author
- Offline
- Platinum Member
-
Less
More
7 years 8 months ago #411
by Deep Freeze
Discovered the UT99 Assault maps...so THAT'S why there's a bunch of weird movers that don't do anything in some NAB levels.
FreezeMutators was created by Deep Freeze
From now on, this will be the main thread for my new mutators.
They will all be included in the FreezeMutators pack.
The first version features BossFight, and a new mutator: Extreme. Prove your skill at NAB with Extreme: human players are unable to use weapons besides the Secret Shot, but bots can still use all weapons.
They will all be included in the FreezeMutators pack.
The first version features BossFight, and a new mutator: Extreme. Prove your skill at NAB with Extreme: human players are unable to use weapons besides the Secret Shot, but bots can still use all weapons.
Discovered the UT99 Assault maps...so THAT'S why there's a bunch of weird movers that don't do anything in some NAB levels.

Please Log in or Create an account to join the conversation.
7 years 8 months ago - 7 years 8 months ago #412
by Rajada
Replied by Rajada on topic FreezeMutators
Wait, people use guns other than the Secret Shot? 
Well, there's actually a much cleaner way to implement that mutator that is fool-proof and does not rely on timers (which are resource intensive and not always reliable).
This prevents players from ever picking up any weapon that is not a Secret Shot. With adjustments, you can handle the pickup of any inventory item as you'd like, like, for example, also blocking players from getting any health.
Edited to be more compatible.

Well, there's actually a much cleaner way to implement that mutator that is fool-proof and does not rely on timers (which are resource intensive and not always reliable).
Code:
function bool HandlePickupQuery(Pawn Other, Inventory item, out byte bAllowPickup)
{
if((PlayerPawn(other) != none) && (Weapon(item) != none) && (!item.IsA('SShot')))
return true;
if ( NextMutator != None )
return NextMutator.HandlePickupQuery(Other, item, bAllowPickup);
return false;
}
This prevents players from ever picking up any weapon that is not a Secret Shot. With adjustments, you can handle the pickup of any inventory item as you'd like, like, for example, also blocking players from getting any health.
Edited to be more compatible.
Last edit: 7 years 8 months ago by Rajada.
Please Log in or Create an account to join the conversation.
- Deep Freeze
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 53
7 years 8 months ago #413
by Deep Freeze
Discovered the UT99 Assault maps...so THAT'S why there's a bunch of weird movers that don't do anything in some NAB levels.
Replied by Deep Freeze on topic FreezeMutators
Okay, I will add that to the next release of FreezeMutators.
Discovered the UT99 Assault maps...so THAT'S why there's a bunch of weird movers that don't do anything in some NAB levels.

Please Log in or Create an account to join the conversation.
Moderators: 8Bit_Architect