What I'm trying to do is get one option available for cod2 CTF (also cod4 ctf if its possible)
Idk if i have to make a new gametype- but idc if so
I want to add Score on Drop to cod2 ctf ( or make my own gametype with it)
Bell, made ctf for cod1 (not uo) and 1 option i love is score on drop
Score on Drop = run over your flag with enemy flag to score, it does NOT have to be at base to score
What i tried
I took bell's ctf pk3- and tried to find the 1 line for score on drop, and then add it to the cod2 ctf file
I made my own iwd and i
Added
// Score on dropped
level.scoreondropped = cvardef("scr_ctf_scoreondropped", 1, 0, 1, "int");
// setCvar("ui_ctf_scoreondropped", level.scoreondropped);
// makeCvarServerInfo("ui_ctf_scoreondropped", "0");
to the cod2 ctf.gsc
then i replaced bell's ui_mp folder with the 1 for cod2
This is just wat i think i have to do- this is my first mod- so if any1 knows wat i should do and how to plz let me know
http://www.megaupload.com/?d=2T5UX0Z1 this is bells ctf pk3 file ( for the score on drop code)
How can i add score on drop from bells ctf- to cod2 ctf ( or just make my own ctf with score on drop) ?
xfire: paulb39
CTF issues
Moderator: Core Staff
CTF issues
Someone asked me to post this question for him, so here it is:


-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
This is his first mod, and he want to modify the gametypes, this could be a long day 
First off, the section of code included in the post, is nothing more than a cvar.
The real work is found through out the script.
Open the ctf.gsc and search for "scoreondropped". I cannot (as I do not have the time to) post exactly how to do it, but that should help find some answers.

First off, the section of code included in the post, is nothing more than a cvar.
The real work is found through out the script.
Open the ctf.gsc and search for "scoreondropped". I cannot (as I do not have the time to) post exactly how to do it, but that should help find some answers.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
These are all the things in the cfg that have scoreondropped in em
// Score on dropped
level.scoreondropped = cvardef("scr_ctf_scoreondropped", 1, 0, 1, "int");
// setCvar("ui_ctf_scoreondropped", level.scoreondropped);
// makeCvarServerInfo("ui_ctf_scoreondropped", "0");
_______________________this just seperate the diff codes in tyhe cfg ( this in lower part of it
// Score on dropped
scoreondropped = cvardef("scr_ctf_scoreondropped", 1, 0, 1, "int");
if(level.scoreondropped != scoreondropped)
{
level.scoreondropped = scoreondropped;
// setCvar("ui_ctf_scoreondropped", level.scoreondropped);
______________________________________________________________________
// Update flag position if carried.
if(isdefined(self.carrying) && (isdefined(level.flag[myteam]["flag"].athome) || level.scoreondropped) )
{
___________________________________________________________________
// Bring it home
returnFlag(myteam);
self announce("^7returned the " + game[myteam] + " " + level.flagname[myteam] + "^7!");
self playsound("cell_door");
if(!level.scoreondropped)
{
You can look at the full cfg by downloading the pk3 at http://www.megaupload.com/?d=2T5UX0Z1
// Score on dropped
level.scoreondropped = cvardef("scr_ctf_scoreondropped", 1, 0, 1, "int");
// setCvar("ui_ctf_scoreondropped", level.scoreondropped);
// makeCvarServerInfo("ui_ctf_scoreondropped", "0");
_______________________this just seperate the diff codes in tyhe cfg ( this in lower part of it
// Score on dropped
scoreondropped = cvardef("scr_ctf_scoreondropped", 1, 0, 1, "int");
if(level.scoreondropped != scoreondropped)
{
level.scoreondropped = scoreondropped;
// setCvar("ui_ctf_scoreondropped", level.scoreondropped);
______________________________________________________________________
// Update flag position if carried.
if(isdefined(self.carrying) && (isdefined(level.flag[myteam]["flag"].athome) || level.scoreondropped) )
{
___________________________________________________________________
// Bring it home
returnFlag(myteam);
self announce("^7returned the " + game[myteam] + " " + level.flagname[myteam] + "^7!");
self playsound("cell_door");
if(!level.scoreondropped)
{
You can look at the full cfg by downloading the pk3 at http://www.megaupload.com/?d=2T5UX0Z1
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Yep, ive looked at the config but the coding for Bells CTF is very different to IW's CTF, which makes it very hard to just simply implement in.
I cannot help produce this as I have about 3 different projects currently on the go for CoD4 related things. Check CoDfiles.com there have been many CTf creations, you may find something already made for you.
I cannot help produce this as I have about 3 different projects currently on the go for CoD4 related things. Check CoDfiles.com there have been many CTf creations, you may find something already made for you.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
CTF is stock and already made for cod2 - most people who play cod2 ctf- have NEVER played bells ctf- and do not even understand wat i mean wen i say score on dropped- there is no mod that does wat i want - which is why im trying to find out how i can make it- but by any chance is 1 of ur cod4 projects making CTF for cod4? I wanted to do that- but i have no modding sillsDrofder2004 wrote:Yep, ive looked at the config but the coding for Bells CTF is very different to IW's CTF, which makes it very hard to just simply implement in.
I cannot help produce this as I have about 3 different projects currently on the go for CoD4 related things. Check CoDfiles.com there have been many CTf creations, you may find something already made for you.
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
i personally will not be making the mod, as tbh, I am not a fan of CTF. Its either S&D or TDM (well, at the moment, coD4 will prob change that).
My current projects:
- CoD4Jumper (CoDJumper Mod for CoD 4).
- mp_Pavlov (Convert map).
- mp_jumptest (Like I did for CoD2, I will make a very quick jump test map)
- ??? (Something which atm, is CJ team only).
I have intentions, although not a planned project, of creating a jump map at some point, but thats not my main plans.
My current projects:
- CoD4Jumper (CoDJumper Mod for CoD 4).
- mp_Pavlov (Convert map).
- mp_jumptest (Like I did for CoD2, I will make a very quick jump test map)
- ??? (Something which atm, is CJ team only).
I have intentions, although not a planned project, of creating a jump map at some point, but thats not my main plans.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 2 guests