CTF issues

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

CTF issues

Post by Pedsdude » November 5th, 2007, 11:15 pm

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
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » November 6th, 2007, 1:45 am

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.
Image
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

paulb39
CJ Wannabe
CJ Wannabe
Posts: 3
Joined: November 6th, 2007, 12:10 am

Post by paulb39 » November 6th, 2007, 2:02 am

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

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » November 6th, 2007, 3:57 am

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.
Image
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

paulb39
CJ Wannabe
CJ Wannabe
Posts: 3
Joined: November 6th, 2007, 12:10 am

Post by paulb39 » November 6th, 2007, 10:39 pm

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

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » November 7th, 2007, 1:42 am

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.
Image
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

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » November 7th, 2007, 2:37 pm

Drofder2004 wrote:CJ team only
... and CJ Helper(s) too ;)
Image
Image

paulb39
CJ Wannabe
CJ Wannabe
Posts: 3
Joined: November 6th, 2007, 12:10 am

Post by paulb39 » November 7th, 2007, 11:01 pm

K- well any other modders on this site want to help me get score on drop to work in cod2 ctf?

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests