Page 1 of 1
Driveable Tanks?
Posted: Sun Jun 27, 2004 3:24 pm
by Master-Of-Fungus-Foo-D
Ive seen a to of driveable tank tuts and they all say they are for spearhead! But how can that be if there is a driveable tank mission in MoH:AA? Why arent there any tutorials for a drivable tank in Allied Assault?!
Posted: Sun Jun 27, 2004 4:52 pm
by lizardkid
copy the .scr from m5lx and find the tank. use notepad to open and look through it. u can also type editscript in-game while on that level to se the script and mod it.
Posted: Sun Jun 27, 2004 6:28 pm
by Master-Of-Fungus-Foo-D
I SHALL TRY!!!!!
hmm maybe i should decompile the map and look at targetnames and that stuff...
::EDIT::
Could.. this be the scripting i need
Code: Select all
/////////////////////
level waitTill spawn
println "z: level waittill spawn marker"
/////////////////////
//*** telling the AI to not drop health
level.nodrophealth = 1
$player stufftext "tmstartloop sound/music/mus_TigerTank_01a.mp3"
//*** TEMP reset the Objectives portion of the HUD
// waitthread global/objectives.scr::reset_objectives
// waitthread global/objectives.scr::blank_objectives
waitthread global/objectives.scr::add_objectives 1 2 "Escape with the King Tiger tank." $level_end.origin
waitthread global/objectives.scr::current_objectives 1
thread start
end
speedup:
if (level.currently_fast == 1)
end
println "z: speeding up"
for (local.speed = level.slowspeed; local.speed <= level.fastspeed; local.speed += 1)
{
$playertank vehiclespeed local.speed
waitframe
}
println "z: done speeding up"
level.currently_fast = 1
end
slowdown:
if (level.currently_fast != 1)
end
println "z: slowing down"
for (local.speed = level.fastspeed; local.speed >= level.slowspeed; local.speed -= 1)
{
$playertank vehiclespeed local.speed
waitframe
}
println "z: done slowing down"
level.currently_fast = 0
end
////////////////
start:
wait 2
local.forward = getboundkey1 "+forward"
local.back = getboundkey1 "+back"
local.left = getboundkey1 "+moveleft"
local.right = getboundkey1 "+moveright"
local.jump = getboundkey1 "+moveup"
iprintlnbold_noloc (loc_convert_string "Move the tank with your Forward key ( ") local.forward (loc_convert_string " ) and Backward key. ( ") local.back (loc_convert_string " )")
wait 3
iprintlnbold_noloc (loc_convert_string "Press STRAFE LEFT ( ") local.left (loc_convert_string " ) to turn left and STRAFE RIGHT ( ") local.right (loc_convert_string " ) to turn right.")
wait 3
iprintlnbold "Turn the turret with the Mouse."
wait 3
iprintlnbold_noloc (loc_convert_string "Hold your Jump key ( ") local.jump (loc_convert_string " ) to align the base with the turret.")
end