Capture The Flag Server-side script

A nice server-side CTF script.

Download

Uploading...
Do not refresh or leave this page!

File Description

A nice server-side CTF script.

Read More

Readme
Server side modification for Call of Duty multiplayer version 1.4
-----------------------------------------------------------------
Name   : user_ctf_v1.2 (Capture the Flag)
Version: 1.2
Author : Bell
Site   : http://www.awemod.com/
Forum  : http://forum.awemod.com/


Compatibility
-------------
Call of Duty 1.4 stock maps
Any custom map that support either RE or SD and TDM.


Credits
-------
Detection of minefield/trigger_hurt death	- Hellspawn


Installation (not needed for AWE 1.4.3 which has CTF built in)
--------------------------------------------------------------
Copy user_ctf_v1.2.pk3 your "Call of Duty\main" folder.


Cvars
-----
// Score limit
set scr_ctf_scorelimit "5"

// Time limit
set scr_ctf_timelimit "30"

// Show carrier headicon (0 = only friendly team, 1 = both teams) (default 1)
set scr_ctf_showcarrier "1"

// Time in seconds before a dropped flag automaticly returns to the base (0 = disabled) (default 0)
// NOTE! Flags dropped in a minefield will automaticly return instantly regardless of this setting
set scr_ctf_flagrecovertime "0"

// Controls what happens if a flag carrier finds his own teams flag out of the base
// (0 = return flag only, 1 = score & return flag) (default 1)
set scr_ctf_scoreondropped "1"


Flag object can be overridden, examples:

// Capture The Cow
set scr_ctf_axis_flagmodel "cow_standing"
set scr_ctf_axis_flagmodel_dropped "cow_dead"
set scr_ctf_axis_flagname "cow"
set scr_ctf_allied_flagmodel "cow_standing"
set scr_ctf_allied_flagmodel_dropped "cow_dead"
set scr_ctf_allied_flagname "cow"

// Capture The Beer (Well, this makes sense, doesn't it?)
set scr_ctf_axis_flagmodel "bottle_beer"
set scr_ctf_axis_flagmodel_dropped "bottle_beer"
set scr_ctf_axis_flagname "beer"
set scr_ctf_allied_flagmodel "bottle_beer"
set scr_ctf_allied_flagmodel_dropped "bottle_beer"
set scr_ctf_allied_flagname "beer"


Flag homes can be overriden for each map with the following cvars:

scr_ctf_allied_home_x_mp_brecourt
scr_ctf_allied_home_y_mp_brecourt
scr_ctf_allied_home_z_mp_brecourt
scr_ctf_allied_home_a_mp_brecourt

scr_ctf_axis_home_x_mp_brecourt
scr_ctf_axis_home_y_mp_brecourt
scr_ctf_axis_home_z_mp_brecourt
scr_ctf_axis_home_a_mp_brecourt

Replace mp_brecourt the name of the map you want for which you want to change the flag homes.

Type /viewpos in the console when playing and you'll get the x,y,z and a values in this form:

(x y z) : a


Map makers
----------
CTF uses the first RE spawn point (or SD if RE spawnpoints is unavailable) for the the flag homes.
When no alive players exist on a team, the first player spawns using RE spawnpoints. After that TDM
spawnpoints is used. So either RE or SD spawnpoints must exist and TDM spawnpoints.

You can override the flag homes by using a script_models with the following names:
allies_flag_home
axis_flag_home


Changes
-------
1.2	Added some basic scoring for scoring with flag, returning flag (if scoreondropped is turned off)
	and for stealing flag.

1.1	Same code as in AWE 1.4.3 beta 3.
	Check for flags 5 times/s, compared to 2 times/s before. Makes it more responsive.
	Added fix that should prevent flags from being spawned below ground in rare situations.

1.0c	Added a fallback routine for maps with SD or RE but no TDM spawns.(never released).

1.0b	Removed makeCvarServerinfo calls that was not needed.

1.0	Initial release.

Read More

Comments on this File

There are no comments yet. Be the first!

Bell


50 XP


Registered 14th July 2004

19 Files Uploaded

Share This File
Embed File