Page 1 of 1

HQ Help?

Posted: October 10th, 2006, 1:55 am
by Nightmare
I was wondering if anyone could help me out with how to make the hq gametype. Thanks :)

Posted: October 10th, 2006, 2:29 am
by Soviet
the headquarters game script can be found in pakb.pk3

as for adding it, look at the stock .gsc files for maps like carentan in the same pk3 file.

Other than that i don't know

Posted: October 10th, 2006, 6:12 am
by Drofder2004
I am not 100% on all the details, but I am pretty sure it is purely scripting.

check "hq.gsc" from the stock files, in the top of the file will be which spawnpoints you need to use...

Then to create the places where HQ radios spawn, you need to use code which you can find in the "<mapname>.gsc" files.

Posted: October 10th, 2006, 10:49 am
by creator
.. nm cant u look ur self on modsonline...?
movie link: http://www.modsonline.com/Downloads-full-855.html

Posted: October 10th, 2006, 11:16 am
by creator
Drofder2004 wrote: but I am pretty sure it is purely scripting.
wrong

Posted: October 10th, 2006, 2:53 pm
by Drofder2004
creator wrote:
Drofder2004 wrote: but I am pretty sure it is purely scripting.
wrong
Only half wrong...

It requires TDM spawns for a start...

And secondly there are 2 ways of doing it (for CoD 2 at least).
You can
1. Create the radios in the map
2. Use a script to spawn the radios where you want them...

This is an example of HQ...

Code: Select all

if(getcvar("g_gametype") == "hq")
{
level.radio = [];
level.radio[0] = spawn("script_model", (-464, 1864, 96));
level.radio[0].angles = (0, 0, 0);
level.radio[1] = spawn("script_model", (-152, 184, 128));
level.radio[1].angles = (0, 0, 0);
level.radio[2] = spawn("script_model", (756, 3032, 264));
level.radio[2].angles = (0, 90, 0);
level.radio[3] = spawn("script_model", (2608, 3952, 88));
level.radio[3].angles = (0, 270, 0);
level.radio[4] = spawn("script_model", (2984, 2640, 276));
level.radio[4].angles = (0, 0, 0);
level.radio[5] = spawn("script_model", (2700, 816, 132));
level.radio[5].angles = (0, 0, 0);
}

Posted: October 10th, 2006, 9:46 pm
by Nightmare
oh so thats pretty simple, so according to the video, I can do it only with mapping. So I would just call the radio different targetnames?
such as

hqradio1
hqradio2
hqraido3?

Posted: October 11th, 2006, 11:25 am
by creator
i think target names need to be the same.

ps. broken hand -.-

Posted: October 11th, 2006, 9:40 pm
by Drofder2004
creator wrote:i think target names need to be the same.

ps. broken hand -.-
correct. Its an array. Use the same name.

Posted: November 4th, 2006, 2:23 pm
by creator
nightmare just wana tell u ur site is offline
says when u connect with firefox:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<p>Additionally, a 400 Bad Request
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr />
<address>Apache/2.0.40 Server at blacknightmare.weblogger.terra.com.br Port 80</address>
</body></html>

Posted: November 4th, 2006, 3:48 pm
by Nightmare
yes I know, it has been down for a while now.