FLYING TUTORIAL + SCRIPT

Post your scripting questions / solutions here

Moderator: Moderators

Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

FLYING TUTORIAL + SCRIPT

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
meowmix11
Lance Corporal
Posts: 24
Joined: Sun May 02, 2004 6:22 pm

Post by meowmix11 »

Is there a way to make the player move forward faster?
I will be unavailable and uncontactable form June 15 through June 25.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

Well, i dont know. I think youd have to get a custom pk3 for that.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

dang this is useful, exactly what i need......

as for speed, wouldn't sv_runspeed work?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
cardevsan
Corporal
Posts: 28
Joined: Wed May 19, 2004 9:06 pm

Post 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
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

Actually this trigger makes you, sort of, fly when you jump and press forward.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
cardevsan
Corporal
Posts: 28
Joined: Wed May 19, 2004 9:06 pm

Post by cardevsan »

i know its my mod...lmao

cardevsan=carl lucas...lol
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

ooops, forgot your nickname lol :lol: :lol:
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Cobra {sfx}
First Lieutenant
Posts: 193
Joined: Tue Mar 23, 2004 10:25 pm
Contact:

Post by Cobra {sfx} »

Were releasing our Flyable Version in a custom map shortly :)

www.mods-r-us.net
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
cardevsan
Corporal
Posts: 28
Joined: Wed May 19, 2004 9:06 pm

Post 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!!!!!
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

Cool. BTW, my friend LOVES crazyserver. When hes not on Breathrought hes on crazyserver!
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
cardevsan
Corporal
Posts: 28
Joined: Wed May 19, 2004 9:06 pm

Post 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!!!
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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?
Post Reply