lfnetwork.com mark read register faq members calendar

Thread: JK2 RGB Disruptor Fire
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-07-2004, 01:05 AM   #1
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
JK2 RGB Disruptor Fire

Dear Open Jedi Project:


Sect-AC is currently one of the largest Pro-Class JK2 InstaGib communities.

Our most recently completed project is the muTracker, 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,
AC :: TLA
Vox-uLaw is offline   you may: quote & reply,
Old 08-07-2004, 01:49 AM   #2
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
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.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 08-07-2004, 12:41 PM   #3
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
Much thanks for your response.

I will get started, and keep you updated.



Thanks again,
Vox-uLaw is offline   you may: quote & reply,
Old 08-07-2004, 11:31 PM   #4
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
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.



(UPDATE)

It was late last night.

I guess that's why.

Last edited by Vox-uLaw; 08-08-2004 at 12:33 PM.
Vox-uLaw is offline   you may: quote & reply,
Old 08-08-2004, 01:19 PM   #5
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
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.


Thanks,
Vox-uLaw is offline   you may: quote & reply,
Old 08-09-2004, 02:18 AM   #6
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
Never mind.

Heh.
Vox-uLaw is offline   you may: quote & reply,
Old 08-09-2004, 02:22 PM   #7
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
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.
Vox-uLaw is offline   you may: quote & reply,
Old 08-10-2004, 10:54 PM   #8
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
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?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 08-13-2004, 01:38 AM   #9
Vox-uLaw
Rookie
 
Join Date: Jun 2004
Posts: 12
Actuall.

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.


Anyway,
Thanks for all your help.


Vox-uLaw is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Community > Hosted Forums > Open Jedi Project (OJP) > JK2 RGB Disruptor Fire

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.