Does anyone know what part of the sandbox gamemode one would mess with to make it so the player starts with [U]only[/U] the physics gun, tool gun, and camera? I use lots of SWeps to build different arsenals from the bottom up and at this point all the other stuff just gets in the way. I'm talking weapons [U]and[/U] ammo, by the way; I like the challenge of having limited ammunition and the two-and-a-half tons of it you start out with in sandbox is not entirely condusive to this. Any help is greatly appreciated!
"sbox_weapons 0" in console.
I'm pretty sure it disables all starting ammo too. This is what it does in the gamemode code:
[Lua] if ( server_settings.Bool( "sbox_weapons", true ) ) then
pl:GiveAmmo( 256, "Pistol", true )
pl:GiveAmmo( 256, "SMG1", true )
pl:GiveAmmo( 5, "grenade", true )
pl:GiveAmmo( 64, "Buckshot", true )
pl:GiveAmmo( 32, "357", true )
pl:GiveAmmo( 32, "XBowBolt", true )
pl:GiveAmmo( 6, "AR2AltFire", true )
pl:GiveAmmo( 100, "AR2", true )
pl:Give( "weapon_crowbar" )
pl:Give( "weapon_pistol" )
pl:Give( "weapon_smg1" )
pl:Give( "weapon_frag" )
pl:Give( "weapon_physcannon" )
pl:Give( "weapon_crossbow" )
pl:Give( "weapon_shotgun" )
pl:Give( "weapon_357" )
pl:Give( "weapon_rpg" )
pl:Give( "weapon_ar2" )
// The only reason I'm leaving this out is because
// I don't want to add too many weapons to the first
// row because that's where the gravgun is.
//pl:Give( "weapon_stunstick" )
end[/Lua]
[QUOTE=NPerez;24707570]"sbox_weapons 0" in console.
I'm pretty sure it disables all starting ammo too. This is what it does in the gamemode code:
[Lua] if ( server_settings.Bool( "sbox_weapons", true ) ) then
pl:GiveAmmo( 256, "Pistol", true )
pl:GiveAmmo( 256, "SMG1", true )
pl:GiveAmmo( 5, "grenade", true )
pl:GiveAmmo( 64, "Buckshot", true )
pl:GiveAmmo( 32, "357", true )
pl:GiveAmmo( 32, "XBowBolt", true )
pl:GiveAmmo( 6, "AR2AltFire", true )
pl:GiveAmmo( 100, "AR2", true )
pl:Give( "weapon_crowbar" )
pl:Give( "weapon_pistol" )
pl:Give( "weapon_smg1" )
pl:Give( "weapon_frag" )
pl:Give( "weapon_physcannon" )
pl:Give( "weapon_crossbow" )
pl:Give( "weapon_shotgun" )
pl:Give( "weapon_357" )
pl:Give( "weapon_rpg" )
pl:Give( "weapon_ar2" )
// The only reason I'm leaving this out is because
// I don't want to add too many weapons to the first
// row because that's where the gravgun is.
//pl:Give( "weapon_stunstick" )
end[/Lua][/QUOTE]
Great! What file would I find this in?
sandbox\gamemode\init.lua:82
But it's probably better to disable it with sbox_weapons in console than to totally delete it
If you're deriving a gamemode from sandbox, you can override GM:PlayerLoadout(pl)
Sorry, you need to Log In to post a reply to this thread.