Page 1 of 2

FLYING TUTORIAL + SCRIPT

Posted: Tue Jun 15, 2004 3:49 pm
by Master-Of-Fungus-Foo-D
(PS) if this doesnt work, plz post it.

BASED ON KNOWLEDGE GAINED FROM CARL LUCAS****CRAZYSERVERMODS****** MODDER. w/o him this wouldnt be here.

WOW! here is the knowledge you need to make youself fly.

First,if you dont have a good open spaced, rectsngular map lying around, then just make a large rectangular flat field with a skybox. Next, put a trigger multiple in one of the corners.

Then, let's give it some key/values:

targetname/flyer
setthread/flying
wait/80
delay/0

ok that was the easy mapping part. Now for a little scripting.


main:

level waitTill prespsawn

flying:

local.player=parm.other

if (local.player.packon == 1)

{

end

}

local.player.packon = 1

local.static = spawn script_model

local.static model "vehicles/stuka.tik"

local.static notsolid

local.static.scale=.2

local.static.origin = (local.player.origin + ( 100 190 100 ))

local.static.angle = "-45"

local.static glue local.player

local.player.scale=.01

local.player gravity .1

local.player stufftext "say I BELIEVE I CAN FLYYYYYY "

parm.other stopwatch 30

wait 30

local.player.packon = 0

local.player.scale=1

local.player gravity .5

local.static remove





end

level waittill spawn

end

Posted: Tue Jun 15, 2004 7:25 pm
by meowmix11
Is there a way to make the player move forward faster?

Posted: Tue Jun 15, 2004 7:27 pm
by Master-Of-Fungus-Foo-D
Well, i dont know. I think youd have to get a custom pk3 for that.

Posted: Tue Jun 15, 2004 7:27 pm
by lizardkid
dang this is useful, exactly what i need......

as for speed, wouldn't sv_runspeed work?

Posted: Tue Jun 15, 2004 7:51 pm
by Master-Of-Fungus-Foo-D
lizardkid wrote:dang this is useful, exactly what i need......

as for speed, wouldn't sv_runspeed work?
ALWAYS glad to help! :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

hmm i should try the sv_runspeed

Posted: Wed Jun 16, 2004 11:25 am
by cardevsan
i am working on a different version to make the player have TOTAL CONTROL in flying the plane now its just like floating with a plane spawned
on you!!!!!!

when i get it working i will post it
i think local.player useheld will make the plane move forward still looking into it

Posted: Wed Jun 16, 2004 2:12 pm
by Master-Of-Fungus-Foo-D
Actually this trigger makes you, sort of, fly when you jump and press forward.

Posted: Wed Jun 16, 2004 4:18 pm
by cardevsan
i know its my mod...lmao

cardevsan=carl lucas...lol

Posted: Wed Jun 16, 2004 6:53 pm
by Master-Of-Fungus-Foo-D
ooops, forgot your nickname lol :lol: :lol:

Posted: Wed Jun 16, 2004 8:16 pm
by Cobra {sfx}
Were releasing our Flyable Version in a custom map shortly :)

www.mods-r-us.net

Posted: Wed Jun 16, 2004 10:35 pm
by Master-Of-Fungus-Foo-D
some1 see if it works, or have you already tryed it. the original script was supposed to be SPAWNED INTO A DM map. So i dont know fully if it will work when msking your own map.

Posted: Thu Jun 17, 2004 2:47 pm
by cardevsan
foo sure it will work for a custom maps as long as the map can be modded
and has a main scr file
just add the script with right coords into a trigger script that is called by the main scr file and you are set

if you need help doing something pm me i will help you always!!!!!

Posted: Thu Jun 17, 2004 3:26 pm
by Master-Of-Fungus-Foo-D
Cool. BTW, my friend LOVES crazyserver. When hes not on Breathrought hes on crazyserver!

Posted: Thu Jun 17, 2004 5:27 pm
by cardevsan
cool thanks i just finished modding capture the toilet mod on the hunt
when you actually grab the toilet or tub(allies or axis)
it gets attached to your head.. and i fixed the point total there too!!!

Posted: Fri Jun 18, 2004 3:02 am
by Elgan
when i get it working i will post it
i think local.player useheld will make the plane move forward still looking into it
hehe nice work!


use held will detect for if they press use. if u want it to move forward when they press use u have to check for it and then move the plane.

BUT. as your plane is a plane with a man glued to it (or the other way round) if u try to move the plane it will now move as it is stuck to its owner (the plane). i got ,my boats moving as they were not part of the player then thanx to cobra for sugesting i try for planes we now have out planes working but im afraid its a lil bit more then just moveforward 40:(. if you can get it working that way the woooot. i can bin the script and start again. maybe local.player moveforward 40 local.player move?