Yet another coding question...

All about Chaos for Unreal... (UT3, UT2004, UT2003, UT)
Post Reply
lord_kungai
Posts: 711
Joined: Tue Apr 27, 2004 3:41 am
Location: Mumbai, India

Yet another coding question...

Post by lord_kungai »

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...
<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>
jeditobe1
Inactive Chaos Team Member
Posts: 2638
Joined: Mon Mar 10, 2003 11:06 pm
Location: The Dagobah System
Contact:

Post by jeditobe1 »

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.
I make Darth Vader look like a teenage punk with a lightsaber.
lord_kungai
Posts: 711
Joined: Tue Apr 27, 2004 3:41 am
Location: Mumbai, India

Post by lord_kungai »

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.
That's what I'll try. Thanks! :D
<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>
jb
Posts: 9825
Joined: Fri May 03, 2002 12:29 am
Location: Coral Springs, FL
Contact:

Re: Yet another coding question...

Post by jb »

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 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.


For 2 why do you want a weapon to do that? Maybe just go with an inventory item?
Jb
jeditobe1
Inactive Chaos Team Member
Posts: 2638
Joined: Mon Mar 10, 2003 11:06 pm
Location: The Dagobah System
Contact:

Post by jeditobe1 »

Id guess he wants a magic weapon. Glowy things being spell particles etc.
I make Darth Vader look like a teenage punk with a lightsaber.
R.Flagg
Chaotic Dreams Team
Posts: 8460
Joined: Thu May 09, 2002 2:55 pm

Post by R.Flagg »

Had fun with Dark Magic & Chaos way back when. Wasn't that what it was called?.

(slipping a bit OT I guess)
lord_kungai
Posts: 711
Joined: Tue Apr 27, 2004 3:41 am
Location: Mumbai, India

Post by lord_kungai »

jeditobe1 wrote:Id guess he wants a magic weapon. Glowy things being spell particles etc.
You got it right on the money again...


I'm trying to make something like a magic mutator. Except maybe not magic. I'll call it psionics or something like that. :D
<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>
jeditobe1
Inactive Chaos Team Member
Posts: 2638
Joined: Mon Mar 10, 2003 11:06 pm
Location: The Dagobah System
Contact:

Post by jeditobe1 »

Yeah think it was dark magic.

I tried it out but never got the hang of most of the spells. Then i picked up strangelove and chaos ...
I make Darth Vader look like a teenage punk with a lightsaber.
lord_kungai
Posts: 711
Joined: Tue Apr 27, 2004 3:41 am
Location: Mumbai, India

Post by lord_kungai »

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...)
<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>
Wormbo
Chaotic Dreams Team
Posts: 396
Joined: Tue Aug 20, 2002 3:06 pm
Location: Quedlinburg, Germany
Contact:

Post by Wormbo »

The weapon thing: Try making a weapon without a mesh and *cough* "borrow" the relic of strength glow effects. You would have to attach them when the weapon is selected and remove them when the weapon is put down.
Romulus777
Posts: 191
Joined: Fri Aug 05, 2005 9:18 am
Location: in front of my computer waiting for 5 mods to download at once

Post by Romulus777 »

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

Code: Select all

 All ur base r blong to us
Viva the Revalution

CLICK HERE! (I need 20+ clicks to win)
jeditobe1
Inactive Chaos Team Member
Posts: 2638
Joined: Mon Mar 10, 2003 11:06 pm
Location: The Dagobah System
Contact:

Post by jeditobe1 »

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)
I make Darth Vader look like a teenage punk with a lightsaber.
Post Reply