mom_df_autoswitch
Controls switching behavior on weapon pickup. The default value of 1 causes autoswitch to happen on every weapon pickup. 0 disables autoswitch, and 2 only switches if the player gets a weapon that wasn’t already enabled.
Controls switching behavior on weapon pickup. The default value of 1 causes autoswitch to happen on every weapon pickup. 0 disables autoswitch, and 2 only switches if the player gets a weapon that wasn’t already enabled.
This entity can be used to give the player ammo.
Reset Time (ResetTime<float>)
The amount of time in seconds before a weapon can be picked up again. If this value is negative, then the spawner will only give a weapon once.
Ammo Name (AmmoName<string>)
Name of the ammo type to give the player. Must be one of the names listed on Ammo System.
Pickup Ammo (PickupAmmo<integer>)
...
This entity can be used to give the player a weapon and ammo for that weapon.
Reset Time (ResetTime<float>)
The amount of time in seconds before a weapon can be picked up again. If this value is negative, then the spawner will only give a weapon once.
Weapon Name (WeaponName<string>)
Name of the weapon to give the player. Must be one of the names listed on Weapon System.
...The weapon system allows mappers to give and remove a players weapons via entity logic.
The momentum_weapon_spawner
entity can be used to give the player a weapon. The entity currently takes a weapon entity name in the WeaponName
key. The following weapon names can be used:
"weapon_momentum_pistol"
"weapon_momentum_shotgun"
"weapon_momentum_machinegun"
"weapon_momentum_sniper"
"weapon_momentum_grenade"
"weapon_momentum_concgrenade"
"weapon_knife"
"weapon_momentum_rocketlauncher"
"weapon_momentum_stickylauncher"
"weapon_momentum_df_plasmagun"
"weapon_momentum_df_rocketlauncher"
"weapon_momentum_df_bfg"
"weapon_momentum_df_grenadelauncher"
The entity also has a ResetTime
key, which is the amount of time in seconds before a weapon can be picked up again. If this value is negative, then the spawner will only give a weapon once. Once we implement a save state system on map reset, this entity should reset along with that, but right now the only way to reset the spawner when it’s in this state is to reload the map.