|
 |
Sound für Camping |
|
|
_ex_camper.gsc, in der main() Funktion:
Sound für alle Spieler:
Code angehängt. Klicke hier zum Ein-/Ausblenden
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
|
// show them a warning message
if(snipercampingtime == level.ex_campsniper_warntime && !self.ex_isunknown)
{
self iprintlnbold(&"CAMPING_WARNING_MESSAGE_SELF", [[level.ex_pname]](self));
// *** Sound für sefeschnut *** \\
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
players[i] playLocalSound("dein_sound");
// *** ENDE *** \\
warnedforcamping = true;
camppos = self.origin;
}
}
else continue;
}
else
{
if(level.ex_campwarntime)
{
if(warnedforcamping)
{
if(distance(startpos, camppos) < level.ex_campradius && !self.ex_sinbin) campingtime++;
else campingtime = 0;
}
else
{
if(distance(startpos, endpos) < 25 && !self.ex_sinbin) campingtime++;
else campingtime = 0;
}
// show them a warning message
if(campingtime == level.ex_campwarntime && !self.ex_isunknown)
{
self iprintlnbold(&"CAMPING_WARNING_MESSAGE_SELF", [[level.ex_pname]](self));
// *** Sound für sefeschnut *** \\
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
players[i] playLocalSound("dein_sound");
// *** ENDE *** \\
warnedforcamping = true;
camppos = self.origin;
}
}
else continue;
}
|
|
Sound nur für den Camper:
Code angehängt. Klicke hier zum Ein-/Ausblenden
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
|
// show them a warning message
if(snipercampingtime == level.ex_campsniper_warntime && !self.ex_isunknown)
{
self iprintlnbold(&"CAMPING_WARNING_MESSAGE_SELF", [[level.ex_pname]](self));
// *** Sound für sefeschnut *** \\
self playLocalSound("dein_sound");
// *** ENDE *** \\
warnedforcamping = true;
camppos = self.origin;
}
}
else continue;
}
else
{
if(level.ex_campwarntime)
{
if(warnedforcamping)
{
if(distance(startpos, camppos) < level.ex_campradius && !self.ex_sinbin) campingtime++;
else campingtime = 0;
}
else
{
if(distance(startpos, endpos) < 25 && !self.ex_sinbin) campingtime++;
else campingtime = 0;
}
// show them a warning message
if(campingtime == level.ex_campwarntime && !self.ex_isunknown)
{
self iprintlnbold(&"CAMPING_WARNING_MESSAGE_SELF", [[level.ex_pname]](self));
// *** Sound für sefeschnut *** \\
self playLocalSound("dein_sound");
// *** ENDE *** \\
warnedforcamping = true;
camppos = self.origin;
}
}
else continue;
}
|
|
Deinen Sound noch in die IWD packen: sound\custom\dein_sound.mp3 (bzw. .wav)
Dann noch in der soundalias (z.B. ex_generic.csv hinzufügen: dein_sound,,,custom/dein_sound.mp3,1,1,,,,1000000,,auto,streamed
Hab das Camperscript des aktuellen eXtreme (v. 2.6) genommen, dürfte ja aber eine Kleinigkeit sein, das in eine ältere Version einzupassen.
Wie immer gilt: Alle Änderungen ohne Gewehr
ToM
__________________

|
|
|
|
|
|
|
War die schriftliche Aufforderung zuvor aktiviert?
Hast Du den Code auch sauber innerhalb der Schleife an dieser Position eingefügt?
ToM
__________________

|
|
|
|
|
|
|
|
 |
Impressum ||Datenschutzerklärung
|