Scripting Sherman and Jeep

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Daniel_NAD
Sergeant
Posts: 51
Joined: Sat Jun 28, 2003 4:25 pm
Location: UK
Contact:

Scripting Sherman and Jeep

Post by Daniel_NAD »

Im working on a map ( not very good - first map) and at the end of it, i want to have a sherman come downa street and get blown up, then have some jeep's come in with someone on the gunon the back and start shootig

Is this possible/
If a job is worth doing then it's worth doing well!
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

A sherman can't drive :(
Image
User avatar
Daniel_NAD
Sergeant
Posts: 51
Joined: Sat Jun 28, 2003 4:25 pm
Location: UK
Contact:

Post by Daniel_NAD »

Ah ok


Thnx anyways JV
If a job is worth doing then it's worth doing well!
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

but it can move.

make it a script model, and then use this:

$sherman move(x) x
$sherman loopsound (what's the tank sound?)

whereby (x) is the direction, and x is the number.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use x and y ;)
Image
Desert Eagle
Captain
Posts: 237
Joined: Mon Jan 13, 2003 1:05 am
Location: Mapping Bunker
Contact:

Post by Desert Eagle »

actaully it will drive in spearhead, but becaue of no animation files, treads will not turn and it looks unrealistic. I have been playing around with it in a snowy map, where the treads would not be seen though. Then I used a Projecticle Generator to make it look like it shoots and added a custom tik for sound. Then created a exp where the tank shell would have hit.

I gave the targetname of tank to the sherman, set up some orgins in the map and did the rest in the script. I gave the the Projecticle Generator a targetname of Cannon, and the explosion the targetname of exp.


$tank drive $p2
$tankwaittill drive
$tank stop
$Cannon TurnON
$tank playsound cannon_fire
$exp anim start
$Cannon TurnOff
Desert-Eagle
....The Eagle Has Landed...
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

heheh one time i had a sherman drive, and then where it stopped i had built a little clip, but there was a hole in the clip, and i placed an invisible german inside the turret, and i just gave him a panzerschreck, and made him fire at things. :D :lol:
Post Reply