Xonotic Forums
Is there an anti-camp code? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: Is there an anti-camp code? (/showthread.php?tid=5100)



Is there an anti-camp code? - zwz - 09-26-2014

I know in some mods of Quake 3 there is a so called "anit-camp" code: you camp for a few seconds and you lose health. If forces you to move.

Is there such code in Xonotic?


RE: Is there an anti-camp code? - Smilecythe - 09-26-2014

The game mechanics of Xonotic already force players to move, you're pretty much at a disadvantage if you sit still in one place and let enemies pick up all the health and armor spawning elsewhere in the map. Unless of course you'd consider adding anti camp to Instagib, Overkill etc.. That being said, I don't know if there's code for it.


RE: Is there an anti-camp code? - end user - 09-27-2014

(09-26-2014, 11:32 PM)Smilecythe Wrote: The game mechanics of Xonotic already force players to move, you're pretty much at a disadvantage if you sit still in one place and let enemies pick up all the health and armor spawning elsewhere in the map. Unless of course you'd consider adding anti camp to Instagib, Overkill etc.. That being said, I don't know if there's code for it.

Try these but I think they are kinda annoying.

cvar g_campcheck is "0" ["0"] damages campers every few seconds
cvar g_campcheck_damage is "100" ["100"] custom cvar
cvar g_campcheck_distance is "1800" ["1800"] custom cvar
cvar g_campcheck_interval is "10" ["10"] custom cvar


RE: Is there an anti-camp code? - zwz - 09-27-2014

Sorry but the console shows "unkown command g_campcheck"


RE: Is there an anti-camp code? - Mr. Bougo - 09-27-2014

Yeah, campcheck was made into a mutator in the development tree since 0.7. In 0.7 you don't need to enable g_campcheck, because it doesn't exist as you point out. Just set the damage, distance and interval.


RE: Is there an anti-camp code? - zwz - 09-27-2014

But I can't set the damage, distance and interval neither. They are all "unknown command"


RE: Is there an anti-camp code? - Mr. Bougo - 09-27-2014

Ah, you're right. It's an LMS-only feature in 0.7, and the cvars are named g_lms_campcheck_*. It won't work in any other game mode.


RE: Is there an anti-camp code? - Mirio - 09-27-2014

Then you are doing it wrong.

Just set g_campcheck 1 and it works already in any mode.


RE: Is there an anti-camp code? - Mr. Bougo - 09-27-2014

EDIT: Mirio, even in 0.7? I can't find any reference to campcheck in the 0.7 source code.


RE: Is there an anti-camp code? - Mirio - 09-27-2014

Apparantly not. (Can we have 0.8 already Tongue)

zwz update to autobuild. Wink


RE: Is there an anti-camp code? - zwz - 09-27-2014

What does "autobuild" mean


RE: Is there an anti-camp code? - end user - 09-27-2014

(09-27-2014, 02:38 PM)zwz Wrote: What does "autobuild" mean

Are you using GIT version of the one from the front page dl? Not sure if that matters.


RE: Is there an anti-camp code? - zwz - 09-27-2014

Well there are anticamp commands for specific modes (LMS)

g_lms_campcheck_damage is "100" ["100"] custom cvar
g_lms_campcheck_distance is "1800" ["1800"] custom cvar
g_lms_campcheck_interval is "10" ["10"] custom cvar
g_lms_campcheck_message is "^1Don't camp!" ["^1Don't camp!"] custom cvar

Any idea to enable this in other game types?


RE: Is there an anti-camp code? - end user - 09-27-2014

(09-27-2014, 09:25 PM)zwz Wrote: Well there are anticamp commands for specific modes (LMS)

g_lms_campcheck_damage is "100" ["100"] custom cvar
g_lms_campcheck_distance is "1800" ["1800"] custom cvar
g_lms_campcheck_interval is "10" ["10"] custom cvar
g_lms_campcheck_message is "^1Don't camp!" ["^1Don't camp!"] custom cvar

Any idea to enable this in other game types?

with the server running just type in apropos campcheck into the server console this should list the cvars. If you start yor szerver in tmux or screen.


RE: Is there an anti-camp code? - Mr. Bougo - 09-27-2014

end user: Um, that will only list the cvars that zwz already listed in his post. And zwz is using Xonotic 0.7.

zwz: Read above. There is no campcheck in Xonotic 0.7, except in LMS mode. It's an LMS-only feature in 0.7.

Autobuilds are zip files much like those on the official download page, that contain the development version of Xonotic. That makes it an early preview of 0.8. They are made automatically every day, hence the name.


RE: Is there an anti-camp code? - frostwyrm333 - 09-28-2014

Try running Xonotic\misc\tools\rsync-updater\update-to-autobuild.
This will overwrite 0.7.


RE: Is there an anti-camp code? - Mr. Bougo - 09-28-2014

Only do that if you need autobuild. And make sure you don't have any data in your install directory, because you will lose everything!