FY Map Creation
Jump to navigation
Jump to search
This non-standard Counter-Strike: Source gameplay style involves pre-placed weapons in the level. See Counter-Strike: Source Level Creation for basic instructions on creating levels for CS:S.
Required FGD addition
These instructions require editing the base.fgd to add a "Use" input to game_player_equip:
input Use(void) : "Equip player"
Adding weapons
To add a weapon entity to the level and fill it full of the proper ammo:
- Add your "Weapon entity" into the world. See the table below for a list of weapon and ammo entities.
- If a game_player_equip with targetname of the required "Short ammo name" does not exist yet, do the following steps:
- Create a game_player_equip entity.
- Set the name to the correct "Short ammo name" (see list below).
- Set the Use Only flag on the game_player_equip.
- Turn off SmartEdit on the Object Properties dialog if it's not already.
- Add a keyvalue with the keyname of the "Ammo entity" and the value "Amount to fill".
- Add an output to your weapon entity named OnPlayerPickup.
- Set the target of the output to the "Short ammo name" and the input to Use.
To place more weapon entities of the same type of weapon, simply added the same output to each one you place, or duplicate the existing one that is already set up correctly. A separate game_player_equip should be added for each ammo type that is required.
List of ammo and weapon entities
Short Ammo name | Ammo Entity | Weapon Entity | Amount to Fill |
---|---|---|---|
338mag | ammo_338mag | weapon_awp | 3 |
357sig | ammo_357sig | weapon_p228 | 4 |
45acp | ammo_45acp | weapon_mac10 | 4 |
↑ | ↑ | weapon_ump45 | 4 |
↑ | ↑ | weapon_usp | 5 |
50ae | ammo_50ae | weapon_deagle | 5 |
556mm | ammo_556mm | weapon_famas | 3 |
↑ | ↑ | weapon_galil | 3 |
↑ | ↑ | weapon_m4a1 | 3 |
↑ | ↑ | weapon_sg550 | 3 |
↑ | ↑ | weapon_sg552 | 3 |
556mm_box | ammo_556mm_box | weapon_m249 | 7 |
57mm | ammo_57mm | weapon_fiveseven | 2 |
↑ | ↑ | weapon_p90 | 2 |
762mm | ammo_762mm | weapon_ak47 | 3 |
↑ | ↑ | weapon_aug | 3 |
↑ | ↑ | weapon_g3sg1 | 3 |
↑ | ↑ | weapon_scout | 3 |
9mm | ammo_9mm | weapon_elite | 4 |
↑ | ↑ | weapon_glock | 4 |
↑ | ↑ | weapon_mp5navy | 4 |
↑ | ↑ | weapon_tmp | 4 |
buckshot | ammo_buckshot | weapon_m3 | 4 |
↑ | ↑ | weapon_xm1014 | 4 |