Page 2 of 3

Posted: Tue Sep 30, 2003 9:51 pm
by M&M
that was a question i was trying 2 ask u ,its not available in the real script.

i fixed the script with the new one u gave me but still no difference.
i tried writing it intentionaly wrong and when i scrolled up the console after loading the game i found an error saying that my_spawn.scr wasnt loaded properly so that means the script i added in the mapname.scr is correct,but the problem lies in the my_spawn.scr
i guess i narrowed down the problem but still not found a solution :(
i removed all spawn points and added just 1 so if i get it 2 work ill probably get the rest going.
when u open my_spawn.scr it looks like this

Code: Select all

local.freeforall = spawn info_player_deathmatch 
local.freeforall.origin = ( 569 -571 268 ) 
there used 2 be a third line with

Code: Select all

local.freeforall.angle = ( 100 )
in it but i removed it 2 make it simple :? .i still cant get it 2 work but the fog problem has disapeared and fog has returned 2 normal :) .

oh i also tried 2 write it in the console directly but i got something saying that i must put "+set cheat 1" but when i type that i get an error saying this command isnt available (or similar) .i removed the "+" sign and it told me that the cheats will be reset after restarting ,i tried typing spawn b4 and after typing restart still no result

Posted: Tue Sep 30, 2003 9:55 pm
by The Jackal
M&M I know you are supposed to be sweet candy. But sent me the mod so I can see what you are doing. I can guide you better from there.

You 'll know what you did wrong and how to correct it..

Posted: Wed Oct 01, 2003 2:16 pm
by M&M
uumm...errm.... how do i attach it on this forum ?,i dont c any attach button .or how do i send it 2 u?

Posted: Wed Oct 01, 2003 3:04 pm
by The Jackal

Posted: Wed Oct 01, 2003 3:10 pm
by Virus
i had a problem with spawning them. Then i realized i didnt have a prob after i put them before the Main: at the very top of the script. Then they worked fine.

Posted: Wed Oct 01, 2003 7:23 pm
by M&M
2 virus:errmmm...,,could u elaborate more on that?what exactly did u mean by
i put them
and
before the Main: at the very top of the script.
r u talking about the maps or the spawn points or the spawn files???amd if ur talking about the spawn points where exactly did u add them ,above level waittill spawn or at the very top?

2 jackal :i sent u a copy of the map in pk3 format with the "exec global/my_spawn.scr" line and the other .pk3 containing the spawn points

Posted: Thu Oct 02, 2003 12:29 pm
by Virus
In your map script their should be a line at the very top called 'Main:' without the ' ' . Add the spawn point spawning script before that line... Riiiight at the VERY top of the script ( map .SCR )

Posted: Fri Oct 03, 2003 12:17 am
by M&M
huurrraaayyy :o :D .at last ive got it 2 work.with jackal's script and virus' idea i finally managed 2 make it work.
im going 2 type it here as a summary 4 those who r looking 4 a solution like me or as a reference of somekind :?

The Steps:
1\extract the (map name).scr from the .pk3 file containing the map
(u will find the .pk3 in the main folder probably ,and the .scr in either dm or obj folder in main\maps)

2\add the codes below with thier corresponding X, Y ,& Z coordinates at the very top of the script before even the line "main:" without " "
(u can edit a .scr with notepad)

3\save it and have fun ,but always have a backup .pk3 somewhere just incase

4\remember 2 thank The Jackal for his continued help 8-) and virus for the golden touch :wink: and the rest 4 thier effort,and me because i typed all of this :P :twisted:


Beginning spawn position for 1st joning player:

Code: Select all

local.start1 = spawn info_player_start 
local.start1.origin = ( XXX YYY ZZZ ) 
local.start1.angle = ( ANGLE )
free for all mode

Code: Select all

local.deathspawns = spawn info_player_deathmatch
local.deathspawns.origin = ( XXX YYY ZZZ )
local.deathspawns.angle = ( ANGLE )
(X & Y & Z are the coordinates which can be obtained by typing
in the console in the location where u think its suitable 4 a spawn place the code)

Code: Select all

viewpos


team and round based modes:
axis:

Code: Select all

local.axis = spawn info_player_axis 
local.axis.origin = ( XXX YYY ZZZ ) 
local.axis.angle = ( ANGLE )
allies:

Code: Select all

local.allied = spawn info_player_allied 
local.allied.origin = ( XXX YYY ZZZ ) 
local.allied.angle = ( ANGLE )
its not necessary 2 make the coordinates a 3 digit number ,i just wrote it that way.
if any1 knows the script for info_player_intermission plz type it also here.
As i know it sets the scene thats brought up after the game it finished
---------------------------------------------------------------------------------------------------------------

oh 1 more thing,most of my maps have a .scr with them but i only have one that doesnt have a .scr so how do i deal with that or do i forget about it :?: do i make a .scr file for it or is there another way or file :?:

Posted: Fri Oct 03, 2003 2:32 am
by The Jackal
Good job M&M! :lol:

Yes you can make a script file for the map.

Posted: Fri Oct 03, 2003 2:20 pm
by M&M
so do i just type the spawn points in a new .scr and thats it?or does it involve any other script?.And i also asked 4 the info_player_intermission script if any1 knows it so this post can completed :wink:

Posted: Fri Oct 03, 2003 7:49 pm
by The Jackal
Let this end this thread. You completed your objective. NO need to stray. There is a detailed thread defining info_player_intermission and others. There is also a thread that will answer your question on creating new DM script files. Just search and you will find them. Welcome to the addictive world of scripting.

Drink lots of coffee.

Posted: Fri Oct 03, 2003 8:57 pm
by M&M
LOL :lol: ,ok tnx alot 4 ur help,i couldnt have done it without u :wink: (and others)

Posted: Sat Oct 04, 2003 1:05 pm
by MPowell1944
Now, does this work for SH and BT only? or just AA? I am trying to do this with a few Breakthrough maps, and the spawns will simply not show up. Anyone have a clue?

Posted: Sat Oct 04, 2003 1:56 pm
by Sgt.Pepper
It does work for SH, the example I posted earlier was running on our SH server.

Not sure about BT though, I just got it and haven't looked at it yet, only played it.

Posted: Sat Oct 04, 2003 4:05 pm
by MPowell1944
Well, if you dont mind, could you give it a try? I have, with no success at all.