plane weapons

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

plane weapons

Post by shadowslayer »

i tried making weapons for my airboat plane, and it didnt work. how do u make airboats shoot stuff?[ ant, it would be appreciated if u can tell me how u got ur plane to shoot flames.]
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
Ryan
Former Server Admin
Posts: 1163
Joined: Fri Apr 23, 2010 2:56 am
Location: United Kingdom

Re: plane weapons

Post by Ryan »

I very much doubt Ant showing you his script.

http://area51servers.game-vip.com/forum ... 3&start=10
Read it all.

We use the Wiki Developers Guide for a purpose, i know you can find what you require on it, because I remember reading it.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: plane weapons

Post by ant_8490 »

[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: plane weapons

Post by ßlade »

yar simply bind the shoot-input, enter your plane and then phew phew phew :lol:
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: plane weapons

Post by shadowslayer »

ok, but how do u put a keyvalue[ like the shootmodel keyvalue for the env_shooter] in the env_shooter?
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: plane weapons

Post by Nicdel »

Code: Select all

ent_fire yourgayshooter addoutput "keyvalue <value>"
Ingame: -[SaD]- Nico

Image
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: plane weapons

Post by shadowslayer »

can u mabye give me an example of a true code's keyvalue?
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: plane weapons

Post by ßlade »

ent_fire penis addoutput "size 10"

:)
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: plane weapons

Post by Jack »

ßlade wrote:ent_fire penis addoutput "size 10"

:)

Noo


ent_fire bawls addoutput "size 15"
User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: plane weapons

Post by ßlade »

Jack wrote:
ßlade wrote:ent_fire penis addoutput "size 10"

:)

Noo


ent_fire bawls addoutput "size 15"
No no no no

ent_fire bawls addoutput "material steel"
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: plane weapons

Post by ant_8490 »

LOL this has become ridiculous, but it does show how to use keyvalues amazingly.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: plane weapons

Post by Jack »

Amazing >_<
User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: plane weapons

Post by ßlade »

In the 4 years of scripting, we distinguished 2 different typs of cmd's
(thats the way i learned)

Input's
Let the entity most of the time interact with it's environment.
e.g. start, stop, activate, turnon, shoot etc.
Used like this:
Ent_fire entity input => ent_fire bla start

Output's
Set's the entity's properties, like size, lenght, life etc.
e.g. size, material, color, coolness (tihihi jk) etc.
used like this:
ent_fire entity addoutput "output amount/value" => ent_fire bla addoutput "size 10"

Simple, isnt it :)

Feel free to check:
http://developer.valvesoftware.com/wiki/Env_smokestack

PS: Well this might sound a bit confusing but the Keyvalues are used the same way as Output's, Input's work the way i explained, and the cmd's below the "Output's"-section are for advanced function's :)
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: plane weapons

Post by shadowslayer »

uhhh, i tried to get the env_shooter to launch a watermelon, and it just crashed.s it not supposed to use prop models?
[and before u ask, i tested it when nobody was around]
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
Ryan
Former Server Admin
Posts: 1163
Joined: Fri Apr 23, 2010 2:56 am
Location: United Kingdom

Re: plane weapons

Post by Ryan »

I'm not a scripter, but use 'Create Server' if you want to test your scripts out.