Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Enable Saber and rate
Enable Saber and rate
2004-11-18, 12:19 PM #1
Anyone knows:

- How to set saber (if enabled) to test collisions
constantly ?
- how to set pulse rate for this.


is this possible ?

please help.
-= Jedi Knight I forever =-
2004-11-18, 1:23 PM #2
Test collisions with architecture or things? What are you trying to do?
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-11-18, 3:00 PM #3
Like sbx did?
May the mass times acceleration be with you.
2004-11-18, 3:03 PM #4
Or Ninja Kage I assume. It's a flag either in Kyle.cog, weap_saber.cog, or just a flag you can set anywhere.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-11-18, 6:14 PM #5
This is mostly theory/hearsay:

I believe ShadowX simply removed the "stop collision" flags from the saber keys. When you swing the saber, you play a key. The key has a predefined point that it turns the saber on, allowing it collide. Then, when the swing is finished, the key stops the colliding by removing that flag. ShadowX just removed the trigger to turn it off.
-El Scorcho

"Its dodgeball time!" -Stormy Waters
2004-11-18, 6:20 PM #6
Hmm perhaps, although years ago I looked at his code and I thought I saw some SetSomethingFlag that turned it on/off.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-11-18, 6:24 PM #7
jkSetFlags(Player, 0x2); will allow the saber to collide. Take a look in the saber cog, it's set before every swing, and disabled after.

C'mon guys, this was in the Datamaster. :p
-Hell Raiser
2004-11-18, 6:34 PM #8
That's what I thought. DataMaster? I never looked. I'm not trying either, I am slacking while studying for finals.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-11-18, 7:45 PM #9
Uhm, I'm sorta back. Don't lynch me for being gone, I've been very busy.

Marker flags within the saber key animations in conjunction with jkEnableSaber(player, damage, length, duration) cause the saber to collide.

Attaching a zip of modified basic animations. My personal testing found that the following produced the best results without crazy lag:
In your saber cog add a pulse at the speed 0.1 that issues the command
jkEnableSaber(player, 50, .12, .11);
each pulse.

50 is the damage, you can turn it up (or down) if you want, but I found 50 to be decently balanced.

QM
2004-11-18, 9:36 PM #10
While we're on the topic of sabers, do you know how the ATC team added a feature to only turn saber blocking on with a hotkey? What's the flag for that?
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-11-18, 10:36 PM #11
ActorFlag 0x2000
-Hell Raiser
2004-11-18, 10:37 PM #12
ATC = Army TC? If so, when did it ever have saber blocking on or off? (Yes I realize it wouldn't be the lightsaber itself)
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-11-19, 9:54 AM #13
Thanx you all :]
I'll try this.

greetz
Ort.
-= Jedi Knight I forever =-
2004-11-19, 11:11 PM #14
Oops, I meant the Arrow Thieves Chronicles.

But I do still want the ATC files... *glower*.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.

↑ Up to the top!