Search found 10 matches

by Kuros
Thu Apr 29, 2004 3:03 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Ah, ok! So, really, I don't need AdjustAim at all, since its not a weapon, and I won't be tracing using the crosshair, etc. I think. Aim = C.AdjustAim(1, StartTrace, C.AimError); X = Vector(Aim); EndTrace = StartTrace + 100 * X; Other = Trace(HitLoc, HitNorm, EndTrace, StartTrace, true); I can use t...
by Kuros
Thu Apr 29, 2004 2:33 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Nope, using UT2k4...but I see the problem now...

Although it puzzles me why this worked:

Aim = AdjustAim(StartTrace, AimError);

In my actual Puncher Weapon, but not in this one. /scratches head

Oh well, I'll stick in the proper values! Thanks again.
by Kuros
Thu Apr 29, 2004 2:18 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Okie dokey! I figured out the whole key press thing (interaction class). Here's the code so far: Class PuncherInt extends Interaction; Function Initialize() { Log("Puncher Interaction Initialized"); } function bool KeyEvent(EInputKey Key, EInputAction Action, FLOAT Delta ) { local vector H...
by Kuros
Wed Apr 28, 2004 6:49 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Neat. Now, to figure out how to place an invisible item! -dives into docs-
by Kuros
Wed Apr 28, 2004 6:05 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Can a player have two things in thier hand at once? I.e., a weapon and the invisible object?
by Kuros
Wed Apr 28, 2004 2:15 pm
Forum: General Chaos Discussion
Topic: Another Melee Question
Replies: 10
Views: 8261

Another Melee Question

I have another melee question for ya, JB. =) Weapons I'm fairly sure I can do now, but I also want to have punches and kicks. But not as weapons. I.e., pressing "Q" in game throws a punch, etc. I will, of course, need an animation for punching and kicking. However, I am not too sure how to...
by Kuros
Wed Apr 21, 2004 12:18 pm
Forum: General Chaos Discussion
Topic: Melee Weapons Question
Replies: 7
Views: 6868

Oo, thats the macro I was lookin for!

I'm used to python where I can do Log("A String "+variable).

I'm remembering why I hate C++ strings. =P
by Kuros
Wed Apr 21, 2004 12:12 pm
Forum: General Chaos Discussion
Topic: Melee Weapons Question
Replies: 7
Views: 6868

Wee, much better! Thanks!

Here is the log output:

ScriptLog: Found contact! -K
ScriptLog: Name of:
ScriptLog: xPawn

I guess I have to go another layer deeper to get the actual name, but still, very cool!
by Kuros
Wed Apr 21, 2004 11:48 am
Forum: General Chaos Discussion
Topic: Melee Weapons Question
Replies: 7
Views: 6868

Ok, cool. I'll post my current attempt. I took the original code from a post on 3D Buzz, but it was for UT2k3. I got it to compile under UT2k4, but its not working how I want, atm. here is a copy of the post: Melee Hit Detection - Not detecting =/ I took the code from the "Hand 2 Hand" pos...
by Kuros
Wed Apr 21, 2004 7:30 am
Forum: General Chaos Discussion
Topic: Melee Weapons Question
Replies: 7
Views: 6868

Melee Weapons Question

I thought this might be a good place to ask this question, since there seems to be very little documention on the web about it, and the ChaosUT team is the only one I know working on melee weapons. Are you guys aware of any melee weapon example code or somesuch? I'm (trying) to play with getting a f...