Re: [hlcoders] RGB to Half-Life Player Model Color

2002-04-14 Thread Nicemice
Arrr, no I'm passing RGB values from 0 to 255... thx for help, this should be the bug. /me goes color testing. > I assume you got the code from here... > > http://www.cs.rit.edu/~ncs/color/t_convert.html > > ...or somewhere similar. > > Are you passing in RGB values from 0 to 1? (i.e > > fl

Re: [hlcoders] RGB to Half-Life Player Model Color

2002-04-14 Thread Nicemice
ok, here's my util function: void UTIL_RGBtoHSV(float r,float g,float b,float &h,float &s,float &v) { float flmin, flmax, fldelta; flmin = min( r, min (g, b )); flmax = max( r, max (g, b )); v = flmax; // v fldelta = flmax - flmin; if( flmax != 0 ) s = fldelta / flmax; // s else

Re: [hlcoders] RGB to Half-Life Player Model Color

2002-04-14 Thread Nicemice
e of the palette entries, > just replacing the hue with the specified value. > > -Original Message- > From: Nicemice [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 12, 2002 7:54 AM > To: [EMAIL PROTECTED] > Subject: [hlcoders] RGB to Half-Life Player Model Color > > &g

[hlcoders] RGB to Half-Life Player Model Color

2002-04-12 Thread Nicemice
Color table, but when finishing a UTIL_RGBtoHSV(...) I noticed that the H Value doesn't fit to the player model color. Any ideas ? cu, Nicemice www.creativelevels.de/spy - Spy & Assassinate ___ To unsubscribe, edit your list preferences, or view the

Re: [hlcoders] HUD saytext.cpp question

2002-03-11 Thread Nicemice
PlaySound( "misc/talk.wav", 1 ); is an old Quake1 dinasour. ID called their "New Message Notify Sound" talk.wav too and stored it in the sound/misc directory(.pak file). cu Nicemice www.creativelevels.de/spy - Spy & Assassinate - __

Re: [hlcoders] Making WorldCraft's editing area bigger?

2002-01-29 Thread Nicemice
Why don't you scale down everthing in your mod ? The more you scale the more space you'll have. Nicemice, Spy & Assassinate www.creativelevels.de/spy ___ To unsubscribe, edit your list preferences, or view the list archives, plea

[hlcoders] Alternate Mod Dir

2002-01-08 Thread Nicemice
Hi, is it possible to add an alternate search dir for .pak files in the liblist.gam ? thx Nicemice Headcoder, Spy & Assassinate: www.creativelevels.de/spy ___ To unsubscribe, edit your list preferences, or view the list archives, please visit:

Re: [hlcoders] world.cpp Keyvalues

2001-12-30 Thread Nicemice
mmh,you might try this: else if ( FStrEq(pkvd->szKeyName, "defaultctf")) { if ( atoi(pkvd->szValue) ) { if ((atoi(pkvd->szValue)) == 1) { CVAR_SET_STRING( "oz_defaultctf", "1");//(atoi(pkvd->szValue)) ); } else if ((atoi(pkvd->szValue)) == 2) { CVAR_SET_STRING( "oz_de