Artillery!!

Post your scripting questions / solutions here

Moderator: Moderators

Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

oh thanks :D and i dont have a precache for my map... :? and i just wanted it so you could have a maximum of 3 strikes... The timer inbetween strikes is good though :D
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you want only 3 strikes make a variable like level.artystrikes then at the top of your script before you call the thread put level.artystrikes=0 then in your thread before the line goto artillery_fire put level.artystrikes++ and instead of goto artillery_fire put " if level.artystrikes<4 goto artillery_fire "

when level.artystrikes = 4 the thread will end
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

syntax

Post by tltrude »

it would have to be:

if (level.artystrikes <= 4)
Tom Trude,

Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

Oh goody i got a dm precache for my map! what line do i need in if .. lets say my map is named artytest would i name it DM_Precache_artytest.scr??? :? or what? and in the regular map script what line do i need to execute it? (i know its like... exec dm_precache_artytest)<-is that right??? (without the perinthesis heheh)
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

no

Post by tltrude »

Name it:

artytest_precache.scr

You don't need to load it. The game will do that automattically, if it is in the same folder with artytest.bsp and artytest.scr .
Tom Trude,

Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

now what line do i add to get my ... artytest.tik thinger to work :? (and does it matter what i name the tik?) or does it also do that automatically.. i just need to add the lines to get the explosions/lead ins to work (of which i already have)
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

You should reread the posts in this tread like I said earlier
When you are done save it as artillerymap.tik and add the line to your artillerymap_precache.scr "cache models/artillerymap.tik " all .tik's are in the models directory so put your tik in the models directory of your pak .
so add that line inside the quotes useing your tik's name into your precache .scr :wink:

It is a good idea too to reread the script a few times and see if you can understand the way the scripting is done so you can start scripting , its half the fun of mapping . :P
Post Reply