View Full Version : JK2 RGB Disruptor Fire

08-07-2004, 01:05 AM
Dear Open Jedi Project:

Sect-AC (http://ac-sect.com) is currently one of the largest Pro-Class JK2 InstaGib communities.

Our most recently completed project is the muTracker (http://trackers.ac-sect.com/), an online server monitor for a number of games. A working RCON Interface and a Force & Weapon Display are available for JK2 & JKJA.

We have coded our own JK2 Server-Side Mod, which handles majority of our admin needs, has an internal score/kills/deaths/caps/accuracy Client Stat-Tracker, and features other miscellaneous attributes. The mod was ported to JK3; due to little interest, the project was terminated.

Currently, we are developing the next version of the JK2 mod.
However, in this version we would like to take InstaGib to the next level and implement Client-Side Plug-ins.

We are looking to create a plug-in, which would allow clients to customize the color of the disruptor’s fire color via sliders.

We are not looking for a code handout. Rather, we are in need of a place to start.
Little documentation on how to approach this type of project could be found on the Internet.

Would you be able to offer us any insight or advice regarding the matter?

Thank you for your time,

08-07-2004, 01:49 AM
Well, first off, thank you not asking for a handout. That's a very refreshing change of pace.

Anyway, in reguards to your request, I'm guessing that the best way to handle this would be to alter the EV_DISRUPTOR_* game events (search for "EV_DISRUPTOR_" in the code). What you'll be doing is using other slots in the entityState (ent->s.) to transfer the RGB data on that particular effect to the clients.

From there, you'd have to alter the cgame event handling for each to display the newly RGB effect.

The best way to determine how to handle the RGB effect creation would be to check out the source code for one of the numberous RGB saber mods that are out there. OJP also has RGB saber code (the search tag for that in the OJP code is "rgbsabers" I think).

I hope that gets you started. Feel free to ask more questions if you have them.

08-07-2004, 12:41 PM
Much thanks for your response.

I will get started, and keep you updated.

Thanks again,

08-07-2004, 11:31 PM
I have the selection menu layed out now.

We're working on the disruptor's entites.

Though I got lost when attempting to show a preview display of the choosen color. I think the UI may heavily involved.


It was late last night.

I guess that's why.

08-08-2004, 01:19 PM
Is there a way I can contact Tchouky?

I have a question about JK2's ui ownerdraw function.

An email address was not left in the readme.


08-09-2004, 02:18 AM
Never mind.


08-09-2004, 02:22 PM
To Moderator:

Since I am just asking questions and figuring them out, this thread may not need to be retained.

If you wish to keep it for archive purposes you may. If not, by all means delete it.

Thanks for all your help.

08-10-2004, 10:54 PM
It's cool. I might move it to the editting forum at some point in the future, but it's good for now.

Did you still have any questions?

08-13-2004, 01:38 AM

As of today, we're done with the first beta.

It was a bit confusing at first, but after a few days we got the hang of it.

Though we had to make a server-side function to attach the selected colors to the player's state. As we could not figure out how to get the UI to do that.

It wasn't as difficult as I had expected.

The hardest part was figuring out how the UI's OWNERDRAW function worked. Though I finally got it to draw the colored box, according the the RGB sliders.

Though not really apart of the project, we finally have semi-transparent ctf flags setup.

BTW, is that avatar from FreeSpace2?
I am sure I've seen that character somewhere before. Or, it could just be me.

Thanks for all your help.