Left 4 Dead 2

Left 4 Dead 2

Your own custom apocalypse
Discover and download new maps, Add-ons, Mutations and more! Want to try your hand at modding or want to upload your mod to Steam?
Learn More
How to change what items spawn at the start of a campaign.
Hey, I'm trying to make a mutation for the workshop. One thing I would like to do is program it so that the SMG starters and the shotgun starters do NOT spawn in the safe area starting the campaign.

Is this something I can do via a vpk mutation file or can this only be done via the campaign file itself?
< >
Showing 1-1 of 1 comments
Mutation or vscript mods can do it. The easier way would be using some event functions like "player_spawn" to check the survivor's spawn location, & use "Entities.FindByClassnameWithin" to check if there's "info_landmark" or saferoom door near where the survivor spawns. Then, check the "weapon_" classnames in that area other than medkits, pistols & throwables. If there are those weapons (smgs & shotguns), use "Kill" to remove those weapons.
< >
Showing 1-1 of 1 comments
Per page: 1530 50