Parachuting from a plane??

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Parachuting from a plane??

Post by smartaiguy »

I'm going to decompile the first sh level and look at the script to see how you would parachute the player out of the plane like the first Spearhead level. I'm thinking a camera scene where you control the cameras angle and pitch, just not where it goes. Anyone have ideas?
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Re: Parachuting from a plane??

Post by WarTech »

smartaiguy wrote:I'm going to decompile the first sh level and look at the script to see how you would parachute the player out of the plane like the first Spearhead level. I'm thinking a camera scene where you control the cameras angle and pitch, just not where it goes. Anyone have ideas?


parachute:

level.player_chute = spawn static/parachute "classname" "scriptmodel" "origin" $player.origin
level.player_chute notsolid
level.player_chute hide

spawn script_origin targetname "player_parachute_spot"
spawn script_origin targetname "hitme_parachute"

$playerspot_plane notsolid
$player_parachute_spot notsolid

local.temp = $playerspot_plane.origin
local.temp[2] += 5

local.temp2 = $hitme.origin
local.temp2[2] += 5

$player_parachute_spot origin local.temp
$hitme_parachute origin local.temp2

$player_parachute_spot angles "0 90 0"

level.player_chute glue $player_parachute_spot
$player_parachute_spot time 9.5 // Amount of time in seconds to complete the fall.
$player_parachute_spot moveto $hitme_parachute
$player_parachute_spot move

wait 4

level.player_chute delete
$hitme_parachute delete
$player_parachute_spot delete

End

Have fun!!
Regards:
<TWZ>WarTech
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

you dont need to decompile anything to see it's script, that jsut gives a rough idea of where the brushes go. which is useless to you.

the script file is in the pk3's called t1l1.scr and you may need to search around for it.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

lizardkid wrote:you dont need to decompile anything to see it's script, that jsut gives a rough idea of where the brushes go. which is useless to you.

the script file is in the pk3's called t1l1.scr and you may need to search around for it.
What I just posted are the ones he needs from T1L1. Now all he has to do is figure out how to tie them to the players
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

yes i was giving him background reference for future endeavors that he didnt have to do anything but open the script in Notpad, instead of decompiling.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply