FreezeMutators

More
6 years 9 months ago #411 by Deep Freeze
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.

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. o.O
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #412 by Rajada
Replied by Rajada on topic FreezeMutators
Wait, people use guns other than the Secret Shot? :sshot:

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: 6 years 9 months ago by Rajada.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #413 by Deep Freeze
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. o.O

Please Log in or Create an account to join the conversation.

Moderators: 8Bit_Architect
Powered by Kunena Forum