Emergency Exit


Tremulous Antidecon Mod

Posted in Gaming, Development by McZonk on the October 3rd, 2007

Some of you might know the Quake 3 based game Tremulous. It is a team based first person shooter. Two races, aliens and humans with different abilities play against each other. Each team has some structures. I sometimes play Tremulous in my rare leisure time.

Tremulous Screenshot

One of the problems in Tremulous is that some people join the server, destonstructs some important buildings and leave. Usually the “deconned” team loses. This is a serious problem on some servers. So I have written a very small mod to face this problem: the Tremulous Antidecon Mod.
The concept is pretty simple. After some minutes of gameplay new players are disallowed to deconstruct for some time.

The changes in the source code are pretty small:
src/game/g_cmds.c
1348a1349,1353
> if((level.time > g_deconDenyInit.integer * 1000) && (level.time - ent->client->pers.enterTime < g_deconDenyTime.integer * 1000)) {
> G_Say(ent, ent, SAY_TELL, "Deconning denied! (Anti-Decon-Mod)");
> return;
> }
>
src/game/g_local.h
1089a1090,1092
> extern vmCvar_t g_deconDenyTime;
> extern vmCvar_t g_deconDenyInit;
>
src/game/g_main.c
108a109,111
> vmCvar_t g_deconDenyTime;
> vmCvar_t g_deconDenyInit;
>
197c200,203
< { &g_rankings, "g_rankings", "0", 0, 0, qfalse}
---
> { &g_rankings, "g_rankings", "0", 0, 0, qfalse},
>
> { &g_deconDenyTime, "g_deconDenyTime", "300", CVAR_ARCHIVE, 0, qfalse },
> { &g_deconDenyInit, "g_deconDenyInit", "600", CVAR_ARCHIVE, 0, qfalse }

There are two new variables “g_deconDenyTime” controls the time in seconds a new player is disallowed to deconstruct (default: 300) and “g_deconDenyInit” controls the time in seconds (default: 600) when the antidecon mods starts working.
The download contains binaries for Windows and Linux.

Download: antidecon.pk3

3 Responses to 'Tremulous Antidecon Mod'

Subscribe to comments with RSS or TrackBack to 'Tremulous Antidecon Mod'.

  1. Oblivion said,

    on October 3rd, 2007 at 3:55

    Its to bad that its not already compiled! because I can’t patch.


  2. on October 11th, 2007 at 9:44

    I stopped playing Tremolous in favor of Natural Selection some month ago. Didnt know this problems became so big. But its good to hear that there are still players like you who try to im improve the game. Great work!

  3. chuck.norris said,

    on May 28th, 2008 at 19:51

    its good to see someone finally adressing this problem… iv been playing Tremolous since it came out a couple years ago… and thats always been one of the main problems lol.

Leave a Reply