Kaynağa Gözat

ACS: Added message showing the player what they voted for, modified confetti physics.

pull/4/head
Tribeam 1 yıl önce
ebeveyn
işleme
530b5db12e
5 değiştirilmiş dosya ile 24 ekleme ve 8 silme
  1. +1
    -0
      CompileACS.bat
  2. +22
    -7
      pk3/Acs/Lexicon.c
  3. BIN
      pk3/Acs/Lexicon.o
  4. +1
    -1
      pk3/Acs/acs.err
  5. BIN
      pk3/HUB.wad

+ 1
- 0
CompileACS.bat Dosyayı Görüntüle

@@ -2,4 +2,5 @@
cd Compiler
bcc -acc-err-file -x bcs ..\pk3\acs\Lexicon.c ..\pk3\acs\Lexicon.o
if not exist ..\pk3\acs\acs.err goto 20
pause
:20

+ 22
- 7
pk3/Acs/Lexicon.c Dosyayı Görüntüle

@@ -159,7 +159,7 @@ strict namespace
{
objs_confetti[c].x = 0;
objs_confetti[c].y = (int)hud_height/65535;
objs_confetti[c].velx = random(1, 32);
objs_confetti[c].velx = random(1, 64);
objs_confetti[c].vely = random(-64, -1);
objs_confetti[c].confnum = random(0, 17);
objs_confetti[c].animnum = random(0, 7);
@@ -168,7 +168,7 @@ strict namespace
{
objs_confetti[c].x = (int)hud_width/65535;
objs_confetti[c].y = (int)hud_height/65535;
objs_confetti[c].velx = random(-32, -1);
objs_confetti[c].velx = random(-64, -1);
objs_confetti[c].vely = random(-64, -1);
objs_confetti[c].confnum = random(0, 17);
objs_confetti[c].animnum = random(0, 7);
@@ -212,7 +212,10 @@ strict namespace
y += 23.0;
hudmessagebold(s:"\c[Gold]", d:votessorted[i][0], s:" : ", s:votenames[votessorted[i][1]][0]; 0, i+10000, 0, 225.1, y, 0.1);
}
}
}
// player's vote
hudmessagebold(s:"\c[Green]Your Vote: \c[Gold]", s:votenames[players[playernumber()]][0]; 0, 9700, 0, hud_width_half, hud_height-128.0, 0.1);
}
// system is in the end results state
@@ -225,8 +228,8 @@ strict namespace
for(int c = 0; c < 128; c++)
{
// slow down the confetti
//if(objs_confetti[c].velx > 0){ objs_confetti[c].velx -= 1; }
//if(objs_confetti[c].velx < 0){ objs_confetti[c].velx += 1; }
if(objs_confetti[c].velx > 0){ objs_confetti[c].velx -= 1; }
if(objs_confetti[c].velx < 0){ objs_confetti[c].velx += 1; }
// add gravity
objs_confetti[c].vely += 1;
@@ -300,7 +303,13 @@ strict namespace
}
}
// sort votes
bubble_sort();
bubble_sort();
// sync player votes
for(int i = 0; i < 63; i++)
{
ACS_ExecuteAlways(571, 0, i, players[pnum]);
}
}
}

@@ -315,7 +324,7 @@ strict namespace
votessorted[index][0] = votes;
votessorted[index][1] = id;
}
// sync voted choice
script 568 (int v) clientside
{
@@ -334,6 +343,12 @@ strict namespace
state = s;
}

// sync player choices
script 571 (int pnum, int id) clientside
{
players[pnum] = id;
}




BIN
pk3/Acs/Lexicon.o Dosyayı Görüntüle


+ 1
- 1
pk3/Acs/acs.err Dosyayı Görüntüle

@@ -1 +1 @@
..\pk3\acs\Lexicon.c:328: syntax error: unexpected `||`
..\pk3\acs\Lexicon.c:218: error: `i` not found

BIN
pk3/HUB.wad Dosyayı Görüntüle