Page 1 of 1

CTF issues

Posted: November 5th, 2007, 11:15 pm
by Pedsdude
Someone asked me to post this question for him, so here it is:
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

Posted: November 6th, 2007, 1:45 am
by Drofder2004
This is his first mod, and he want to modify the gametypes, this could be a long day :P

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.

Posted: November 6th, 2007, 2:02 am
by paulb39
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

Posted: November 6th, 2007, 3:57 am
by Drofder2004
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.

Posted: November 6th, 2007, 10:39 pm
by paulb39
Drofder2004 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.
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 sills

Posted: November 7th, 2007, 1:42 am
by Drofder2004
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.

Posted: November 7th, 2007, 2:37 pm
by Pedsdude
Drofder2004 wrote:CJ team only
... and CJ Helper(s) too ;)

Posted: November 7th, 2007, 11:01 pm
by paulb39
K- well any other modders on this site want to help me get score on drop to work in cod2 ctf?