Yet another coding question...
-
- Posts: 711
- Joined: Tue Apr 27, 2004 3:41 am
- Location: Mumbai, India
Yet another coding question...
2 questions, rather...
How do I:
1) Create a vehicle booster? By this I mean some type of mutator that allows a vehicle to move extremely fast for a short period of time when a certain button is pressed. Like a NOS booster. Also, can something similar be applied to a player? Like, when a player fires a certain weapon, the player zooms forwards, in the direction in which the player is looking, sort of like a booster? the JetPack mutator only makes players fly like a raptor...
2) Make a weapon that is ONLY glowy things? I mean, I want to create a weapon that basically has no weapon body, but makes the players hands glow like when holding the relic of strength, and makes their legs glow like when the speed adrenaline combo is active...
How do I:
1) Create a vehicle booster? By this I mean some type of mutator that allows a vehicle to move extremely fast for a short period of time when a certain button is pressed. Like a NOS booster. Also, can something similar be applied to a player? Like, when a player fires a certain weapon, the player zooms forwards, in the direction in which the player is looking, sort of like a booster? the JetPack mutator only makes players fly like a raptor...
2) Make a weapon that is ONLY glowy things? I mean, I want to create a weapon that basically has no weapon body, but makes the players hands glow like when holding the relic of strength, and makes their legs glow like when the speed adrenaline combo is active...
<center><a href="http://home.att.net/~slugbutter/evil/" target="new"><img src="http://home.att.net/~slugbutter/evil/pureevil.jpg" border=0></a></center>
-
- Posts: 711
- Joined: Tue Apr 27, 2004 3:41 am
- Location: Mumbai, India
That's what I'll try. Thanks!jeditobe1 wrote:In response to the first.
One easy way to do it is take the direction the player is facing, then add velocity to the players velocity in that direction.
<center><a href="http://home.att.net/~slugbutter/evil/" target="new"><img src="http://home.att.net/~slugbutter/evil/pureevil.jpg" border=0></a></center>
Re: Yet another coding question...
For number 1) on vechiles you can not just give them a velocity boost. You have to work with thier phyiscs. I want to say its in the kapplyforces function. But we have examples in our EMP Nades where we slow down the vehicle using the physics. I am traveling back to my home in Fl and dont have access to my code so can not look it up. But its simular to our boost fuction in the hyperboard. Look at that code which you should have. For players Jedi was rigth on the money.lord_kungai wrote:2 questions, rather...
How do I:
1) Create a vehicle booster? By this I mean some type of mutator that allows a vehicle to move extremely fast for a short period of time when a certain button is pressed. Like a NOS booster. Also, can something similar be applied to a player? Like, when a player fires a certain weapon, the player zooms forwards, in the direction in which the player is looking, sort of like a booster? the JetPack mutator only makes players fly like a raptor...
2) Make a weapon that is ONLY glowy things? I mean, I want to create a weapon that basically has no weapon body, but makes the players hands glow like when holding the relic of strength, and makes their legs glow like when the speed adrenaline combo is active...
For 2 why do you want a weapon to do that? Maybe just go with an inventory item?
Jb
-
- Posts: 711
- Joined: Tue Apr 27, 2004 3:41 am
- Location: Mumbai, India
You got it right on the money again...jeditobe1 wrote:Id guess he wants a magic weapon. Glowy things being spell particles etc.
I'm trying to make something like a magic mutator. Except maybe not magic. I'll call it psionics or something like that.
<center><a href="http://home.att.net/~slugbutter/evil/" target="new"><img src="http://home.att.net/~slugbutter/evil/pureevil.jpg" border=0></a></center>
-
- Posts: 711
- Joined: Tue Apr 27, 2004 3:41 am
- Location: Mumbai, India
Howabout if I tried to make...
THE FORCE...?
Ok, that is a sucky idea. Nah, I'm just going to stick to the basics now: weapons that look like magic and with magical names, but which just are modifications of pre-existing weapons (a minigun which sprays very wide arcs of lightning bolts, a very long link gun alt-fire, etc., etc...)
THE FORCE...?
Ok, that is a sucky idea. Nah, I'm just going to stick to the basics now: weapons that look like magic and with magical names, but which just are modifications of pre-existing weapons (a minigun which sprays very wide arcs of lightning bolts, a very long link gun alt-fire, etc., etc...)
<center><a href="http://home.att.net/~slugbutter/evil/" target="new"><img src="http://home.att.net/~slugbutter/evil/pureevil.jpg" border=0></a></center>
-
- Posts: 191
- Joined: Fri Aug 05, 2005 9:18 am
- Location: in front of my computer waiting for 5 mods to download at once
another great responce from a forum member I didn't know exsisted. You guys need to come by more often
proxys rule cuz they r funny a proud mac user
Viva the Revalution
CLICK HERE! (I need 20+ clicks to win)
Code: Select all
All ur base r blong to us
CLICK HERE! (I need 20+ clicks to win)
-
- Inactive Chaos Team Member
- Posts: 2638
- Joined: Mon Mar 10, 2003 11:06 pm
- Location: The Dagobah System
- Contact:
Look at the lighting gun attachment for an easy way to handle the spawning/despawning of the third person effects.
Make your attachment just like that using ThirdPersonEffects() and Destroyed(). Set DrawType to none (so it doesnt draw the mesh), then attach the emitter you spawn to the player's weapon bone (look at the AttachToPawn code in AssaultRifle for how to get the bone's name for the players hand, and similarly if you want offhand glow effects the off hand)
Make your attachment just like that using ThirdPersonEffects() and Destroyed(). Set DrawType to none (so it doesnt draw the mesh), then attach the emitter you spawn to the player's weapon bone (look at the AttachToPawn code in AssaultRifle for how to get the bone's name for the players hand, and similarly if you want offhand glow effects the off hand)
I make Darth Vader look like a teenage punk with a lightsaber.