Forums

Pages: [1]
Author Topic: Disabling caps on linux servers  (Read 162 times)
Offline  tordana
Rocketeer
****

Posts: 253
Thought I would ask here:

We have a plugin to disable captures (specifically this one http://forums.alliedmods.net/showthread.php?p=1327225) and it works perfectly on Windows server, but not on Linux server. The command sm_cap_disable is in 3 places: autoexec.cfg, server.cfg, and as a test an individual map.cfg and none of them appear to execute when the map loads. However, typing the command in console works fine.

Wat do? Anybody know?


---------------------------
   
Offline  hg
Maggot
*

Posts: 2
Just glancing at the source, try setting sm_cap_auto_arena 1 in the configs instead of sm_cap_disable
   
Offline  tordana
Rocketeer
****

Posts: 253
Good thought, but didn't work. =/


---------------------------
   
Offline  hg
Maggot
*

Posts: 2
Something else you could try is modifying the plugin to hook teamplay_round_start also. Maybe the arena_round_start event isn't firing or only depends on arena mode:

HookEvent("teamplay_round_start", Event_ArenaRoundStart, EventHookMode_PostNoCopy);

You can recompile it here after editing it: http://www.sourcemod.net/compiler.php

This would still rely on sm_cap_auto_arena 1 in server.cfg
   
Offline  tordana
Rocketeer
****

Posts: 253
Something else you could try is modifying the plugin to hook teamplay_round_start also. Maybe the arena_round_start event isn't firing or only depends on arena mode:

HookEvent("teamplay_round_start", Event_ArenaRoundStart, EventHookMode_PostNoCopy);

You can recompile it here after editing it: http://www.sourcemod.net/compiler.php

This would still rely on sm_cap_auto_arena 1 in server.cfg


I modified it to hook teamplay_point_startcapture and that worked (and just deleted the if statement since we always want it on). The roundstart still didn't. But at any rate it works now. ^^
« Last Edit: September 27, 2013, 04:49:59 PM by tordana »


---------------------------
   
0 Members and 1 Guest are viewing this topic.
Pages: [1]
« previous next »


spirit Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC