000
18.11.2001, 17:36
[GeF]Duke
|
mmmhhhhh nun ich hab mal so manches ausprobiert doch nie gings. Ich möchte zu gern beim Geiger machen das ein Sprite und/oder ein Text kommt ihr wisst was ich mein ?
--
llllllll»NewbZ«llllllll
----»HL-Hellsing-Mod «----
Wir suchen noch members ^_^
|
|
Profil || Suche
|
001
18.11.2001, 20:41
R2-D2
|
ich hab mir den geiger noch nie genau angekuckt, aber wenn der nen wert hat(was ich vermute), der die staerke angibt, mach doch ne leiste, die immer hoeher tickt, je radioaktiver die gegend wird.(indem de die leiste halt vom staerke-wert abhaengig machst)
--
®2-D2
Believe in Retrieve :)
Projects:
Monkey-Strike (Leader/Coder)
Water Wars (Head Coder)
Mixed Mod (Coder)
|
|
Profil || Suche
|
002
18.11.2001, 21:20
[GeF]Duke
|
ja aber wie soll ich das anstellen Ich kann so was net so gut Ich kann nur Vgui und so einen a<nderen scheiss aber so was hatte ich noch nie gemacht
--
llllllll»NewbZ«llllllll
----»HL-Hellsing-Mod «----
Wir suchen noch members ^_^
|
|
Profil || Suche
|
003
18.11.2001, 21:47
R2-D2
|
"mal" dir mit der FillRGBA funktion ne schoene leiste :)
--
®2-D2
Believe in Retrieve :)
Projects:
Monkey-Strike (Leader/Coder)
Water Wars (Head Coder)
Mixed Mod (Coder)
|
|
Profil || Suche
|
004
18.11.2001, 21:48
[GeF]Duke
|
toll und was is mit der aufzählung?
--
llllllll»NewbZ«llllllll
----»HL-Hellsing-Mod «----
Wir suchen noch members ^_^
|
|
Profil || Suche
|
005
18.11.2001, 21:49
[GeF]Duke
|
int CHudGeiger::Draw (float flTime) { int pct; float flvol; int rg[3]; int i; if (m_iGeigerRange < 1000 && m_iGeigerRange > 0) { // peicewise linear is better than continuous formula for this if (m_iGeigerRange > 800) { pct = 0; //Con_Printf ( "range > 800\n"); } else if (m_iGeigerRange > 600) { pct = 2; flvol = 0.4; //Con_Printf ( "range > 600\n"); rg[0] = 1; rg[1] = 1; i = 2; } else if (m_iGeigerRange > 500) { pct = 4; flvol = 0.5; //Con_Printf ( "range > 500\n"); rg[0] = 1; rg[1] = 2; i = 2; } else if (m_iGeigerRange > 400) { pct = 8; flvol = 0.6; //Con_Printf ( "range > 400\n"); rg[0] = 1; rg[1] = 2; rg[2] = 3; i = 3; } else if (m_iGeigerRange > 300) { pct = 8; flvol = 0.7; //Con_Printf ( "range > 300\n"); rg[0] = 2; rg[1] = 3; rg[2] = 4; i = 3; } else if (m_iGeigerRange > 200) { pct = 28; flvol = 0.78; //Con_Printf ( "range > 200\n"); rg[0] = 2; rg[1] = 3; rg[2] = 4; i = 3; } else if (m_iGeigerRange > 150) { pct = 40; flvol = 0.80; //Con_Printf ( "range > 150\n"); rg[0] = 3; rg[1] = 4; rg[2] = 5; i = 3; } else if (m_iGeigerRange > 100) { pct = 60; flvol = 0.85; //Con_Printf ( "range > 100\n"); rg[0] = 3; rg[1] = 4; rg[2] = 5; i = 3; } else if (m_iGeigerRange > 75) { pct = 80; flvol = 0.9; //Con_Printf ( "range > 75\n"); //gflGeigerDelay = cl.time + GEIGERDELAY * 0.75; rg[0] = 4; rg[1] = 5; rg[2] = 6; i = 3; } else if (m_iGeigerRange > 50) { pct = 90; flvol = 0.95; //Con_Printf ( "range > 50\n"); rg[0] = 5; rg[1] = 6; i = 2; } else { pct = 95; flvol = 1.0; //Con_Printf ( "range < 50\n"); rg[0] = 5; rg[1] = 6; i = 2; }
flvol = (flvol * ((rand() & 127)) / 255) + 0.25; // UTIL_RandomFloat(0.25, 0.5);
if ((rand() & 127) < pct || (rand() & 127) < pct) { //S_StartDynamicSound (-1, 0, rgsfx[rand() % i], r_origin, flvol, 1.0, 0, 100); char sz[256]; int j = rand() & 1; if (i > 2) j += rand() & 1;
sprintf(sz, "player/geiger%d.wav", j + 1); PlaySound(sz, flvol); } }
return 1; }
--
llllllll»NewbZ«llllllll
----»HL-Hellsing-Mod «----
Wir suchen noch members ^_^
|
|
Profil || Suche
|
006
18.11.2001, 21:58
TheTinySteini
|
// peicewise linear is better than continuous formula for this
Echt? So ein Schwachsinn... ich würde sowas mit ner Formel machen. Sprich: BreiteDerLeiste = Maxbreite * MAX(0, (MaxAbstand - Abstand)) / MaxAbstand
Öhh... ich glaub das funzt, bin mir aber net ganz sicher, hab meine Gedanken grad net ganz beisammen ;)
--
TheTinySteini Coder Poke646 "Don't Panic" - Hitchhiker's Guide to the Galaxy
|
|
Profil || Suche
|
007
18.11.2001, 22:02
[GeF]Duke
|
zu viel gesoffen gekifft oder ???? NagutIch bin zu faul um das selber einzufügen :)
--
llllllll»NewbZ«llllllll
----»HL-Hellsing-Mod «----
Wir suchen noch members ^_^
|
|
Profil || Suche
|