G'day, I'm developing a simple gamemode where you fight off monsters. Right know I'm trying to get the weapons "Mad Cows" to work on the dedicated server that I have. Keep in mind, if I host a server from my Gmod client, there are no issues at all. Also, I have the latest version of MCW installed in the dedicated servers addons folder.
[U]So my issue is that weapons instantly reload (on the server, not if I start a game from Gmod).[/U]
Here is my entire gamemode if you would like to take a look:
[url]http://www.filedropper.com/onslaught[/url]
As meantioned before, I have installed MCW inside the servers addons folder and have not modified it in any way. Here are the gamemode files if you don't want to download the zip:
[B]cl_init[/B]
[CODE]include( 'shared.lua' )
// Clientside only stuff goes here
[/CODE]
[B]init[/B]
[CODE]AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
// Serverside only stuff goes here
/*---------------------------------------------------------
Name: gamemode:PlayerLoadout( )
Desc: Give the player the default spawning weapons/ammo
---------------------------------------------------------*/
function GM:PlayerSpawn( ply )
self.BaseClass:PlayerSpawn( ply )
ply:SetGravity( 1 )
ply:SetMaxHealth( 100, true )
ply:SetWalkSpeed( 110 )
ply:SetRunSpeed( 225 )
end
function GM:PlayerLoadout( ply )
ply:StripWeapons()
ply:Give( "weapon_mad_usp" )
end
function GM:PlayerInitialSpawn( ply )
self.BaseClass:PlayerInitialSpawn( ply )
if ply:IsAdmin() then
ply:PrintMessage( HUD_PRINTTALK, "Zombie Onslaught: Hey there!" )
end
end
[/CODE]
[B]shared[/B]
[CODE]
GM.Name = "Zombie Onslaught"
GM.Author = "Aura"
GM.Email = "clealrnotpros@gmail.com"
GM.Website = "N/A"
--This code will derive the gamemode in sandbox
DeriveGamemode( "sandbox" )
function GM:Initialize()
self.BaseClass.Initialize( self )
end
[/CODE]
Any help would be appreciated.
[editline]16th June 2013[/editline]
Alright I've realised it's probably not the plugin, since the MC version of the HL2 weapons reload fine. Could it be where I've downloaded CSS? It's in the same directory as Gmod:
steamcmd_win32>steamapps>common
Counter-Strike Source
GarrysModDS
[editline]16th June 2013[/editline]
UPDATE:
Fixed the issue, I moved cstrike into the garrysmod folder and replaced the mount.cfg with this:
"mountcfg"
{
"cstrike" "garrysmod\cstrike"
}
Sorry, you need to Log In to post a reply to this thread.