mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Yay for me
git-svn-id: https://svn.eduke32.com/eduke32@57 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5fcd240827
commit
5aa9e74e61
5 changed files with 77 additions and 77 deletions
|
@ -4524,7 +4524,7 @@ DETONATEB:
|
||||||
{
|
{
|
||||||
/* addweapon(&ps[p],HANDBOMB_WEAPON); */
|
/* addweapon(&ps[p],HANDBOMB_WEAPON); */
|
||||||
if (!(ps[p].weaponswitch & 1)) addweaponnoswitch(&ps[p],HANDBOMB_WEAPON);
|
if (!(ps[p].weaponswitch & 1)) addweaponnoswitch(&ps[p],HANDBOMB_WEAPON);
|
||||||
else addweapon( &ps[p],HANDBOMB_WEAPON);
|
else addweapon( &ps[p],HANDBOMB_WEAPON);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( sprite[s->owner].picnum != APLAYER )
|
if( sprite[s->owner].picnum != APLAYER )
|
||||||
|
|
|
@ -591,7 +591,7 @@ void CONFIG_ReadSetup( void )
|
||||||
SCRIPT_GetNumber( scripthandle, "Misc", "DemoCams",&ud.democams);
|
SCRIPT_GetNumber( scripthandle, "Misc", "DemoCams",&ud.democams);
|
||||||
SCRIPT_GetNumber( scripthandle, "Misc", "ShowFPS",&ud.tickrate);
|
SCRIPT_GetNumber( scripthandle, "Misc", "ShowFPS",&ud.tickrate);
|
||||||
SCRIPT_GetNumber( scripthandle, "Misc", "Color",&ud.color);
|
SCRIPT_GetNumber( scripthandle, "Misc", "Color",&ud.color);
|
||||||
ud.pcolor[0] = ud.color;
|
ps[0].palookup = ud.pcolor[0] = ud.color;
|
||||||
dummy = useprecache; SCRIPT_GetNumber( scripthandle, "Misc", "UsePrecache",&dummy); useprecache = dummy != 0;
|
dummy = useprecache; SCRIPT_GetNumber( scripthandle, "Misc", "UsePrecache",&dummy); useprecache = dummy != 0;
|
||||||
if(ud.wchoice[0][0] == 0 && ud.wchoice[0][1] == 0)
|
if(ud.wchoice[0][0] == 0 && ud.wchoice[0][1] == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1582,9 +1582,9 @@ void displayfragbar(void)
|
||||||
|
|
||||||
for(i=connecthead;i>=0;i=connectpoint2[i])
|
for(i=connecthead;i>=0;i=connectpoint2[i])
|
||||||
{
|
{
|
||||||
minitext(21+(73*(i&3)),2+((i&28)<<1),&ud.user_name[i][0],sprite[ps[i].i].pal,2+8+16);
|
minitext(21+(73*(i&3)),2+((i&28)<<1),&ud.user_name[i][0],/*sprite[ps[i].i].pal*/ps[i].palookup,2+8+16);
|
||||||
Bsprintf(tempbuf,"%d",ps[i].frag-ps[i].fraggedself);
|
Bsprintf(tempbuf,"%d",ps[i].frag-ps[i].fraggedself);
|
||||||
minitext(17+50+(73*(i&3)),2+((i&28)<<1),tempbuf,sprite[ps[i].i].pal,2+8+16);
|
minitext(17+50+(73*(i&3)),2+((i&28)<<1),tempbuf,/*sprite[ps[i].i].pal*/ps[i].palookup,2+8+16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -600,80 +600,80 @@ void menus(void)
|
||||||
if (current_menu == 20002) {
|
if (current_menu == 20002) {
|
||||||
x = probe(46,50,20,4);
|
x = probe(46,50,20,4);
|
||||||
switch(x) {
|
switch(x) {
|
||||||
case -1:
|
case -1:
|
||||||
cmenu(202);
|
cmenu(202);
|
||||||
probey = 3;
|
probey = 3;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
strcpy(buf, myname);
|
strcpy(buf, myname);
|
||||||
inputloc = strlen(buf);
|
inputloc = strlen(buf);
|
||||||
current_menu = 20003;
|
current_menu = 20003;
|
||||||
|
|
||||||
KB_ClearKeyDown(sc_Enter);
|
KB_ClearKeyDown(sc_Enter);
|
||||||
KB_ClearKeyDown(sc_kpad_Enter);
|
KB_ClearKeyDown(sc_kpad_Enter);
|
||||||
KB_FlushKeyboardQueue();
|
KB_FlushKeyboardQueue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
AutoAim = (AutoAim == 2) ? 0 : AutoAim+1;
|
AutoAim = (AutoAim == 2) ? 0 : AutoAim+1;
|
||||||
goto player_menu_update;
|
goto player_menu_update;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
ud.weaponswitch = (ud.weaponswitch == 3) ? 0 : ud.weaponswitch+1;
|
ud.weaponswitch = (ud.weaponswitch == 3) ? 0 : ud.weaponswitch+1;
|
||||||
goto player_menu_update;
|
goto player_menu_update;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
player_menu_update:
|
player_menu_update:
|
||||||
if(ud.multimode > 1)
|
if(ud.multimode > 1)
|
||||||
|
{
|
||||||
|
// send update
|
||||||
|
for(l=0;myname[l];l++)
|
||||||
|
ud.user_name[myconnectindex][l] = Btoupper(myname[l]);
|
||||||
|
|
||||||
|
buf[0] = 6;
|
||||||
|
buf[1] = myconnectindex;
|
||||||
|
buf[2] = BYTEVERSION;
|
||||||
|
l = 3;
|
||||||
|
|
||||||
|
//null terminated player name to send
|
||||||
|
for(i=0;myname[i];i++) buf[l++] = Btoupper(myname[i]);
|
||||||
|
buf[l++] = 0;
|
||||||
|
|
||||||
|
for(i=0;i<10;i++)
|
||||||
{
|
{
|
||||||
// send update
|
ud.wchoice[myconnectindex][i] = ud.wchoice[0][i];
|
||||||
for(l=0;myname[l];l++)
|
buf[l++] = (char)ud.wchoice[0][i];
|
||||||
ud.user_name[myconnectindex][l] = Btoupper(myname[l]);
|
|
||||||
|
|
||||||
buf[0] = 6;
|
|
||||||
buf[1] = myconnectindex;
|
|
||||||
buf[2] = BYTEVERSION;
|
|
||||||
l = 3;
|
|
||||||
|
|
||||||
//null terminated player name to send
|
|
||||||
for(i=0;myname[i];i++) buf[l++] = Btoupper(myname[i]);
|
|
||||||
buf[l++] = 0;
|
|
||||||
|
|
||||||
for(i=0;i<10;i++)
|
|
||||||
{
|
|
||||||
ud.wchoice[myconnectindex][i] = ud.wchoice[0][i];
|
|
||||||
buf[l++] = (char)ud.wchoice[0][i];
|
|
||||||
}
|
|
||||||
|
|
||||||
buf[l++] = ps[myconnectindex].aim_mode = ud.mouseaiming;
|
|
||||||
buf[l++] = ps[myconnectindex].auto_aim = AutoAim;
|
|
||||||
buf[l++] = ps[myconnectindex].weaponswitch = ud.weaponswitch;
|
|
||||||
|
|
||||||
buf[l++] = ps[myconnectindex].palookup = ud.pcolor[myconnectindex] = ud.color;
|
|
||||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
|
||||||
sprite[ps[myconnectindex].i].pal = ud.color;
|
|
||||||
|
|
||||||
for(i=connecthead;i>=0;i=connectpoint2[i])
|
|
||||||
{
|
|
||||||
if (i != myconnectindex) sendpacket(i,&buf[0],l);
|
|
||||||
if ((!networkmode) && (myconnectindex != connecthead)) break; //slaves in M/S mode only send to master
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
buf[l++] = ps[myconnectindex].aim_mode = ud.mouseaiming;
|
||||||
|
buf[l++] = ps[myconnectindex].auto_aim = AutoAim;
|
||||||
|
buf[l++] = ps[myconnectindex].weaponswitch = ud.weaponswitch;
|
||||||
|
|
||||||
|
buf[l++] = ps[myconnectindex].palookup = ud.pcolor[myconnectindex] = ud.color;
|
||||||
|
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
||||||
|
sprite[ps[myconnectindex].i].pal = ud.color;
|
||||||
|
|
||||||
|
for(i=connecthead;i>=0;i=connectpoint2[i])
|
||||||
{
|
{
|
||||||
ps[myconnectindex].aim_mode = ud.mouseaiming;
|
if (i != myconnectindex) sendpacket(i,&buf[0],l);
|
||||||
ps[myconnectindex].auto_aim = AutoAim;
|
if ((!networkmode) && (myconnectindex != connecthead)) break; //slaves in M/S mode only send to master
|
||||||
ps[myconnectindex].weaponswitch = ud.weaponswitch;
|
|
||||||
|
|
||||||
ps[myconnectindex].palookup = ud.pcolor[myconnectindex] = ud.color;
|
|
||||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
|
||||||
sprite[ps[myconnectindex].i].pal = ud.color;
|
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ps[myconnectindex].aim_mode = ud.mouseaiming;
|
||||||
|
ps[myconnectindex].auto_aim = AutoAim;
|
||||||
|
ps[myconnectindex].weaponswitch = ud.weaponswitch;
|
||||||
|
|
||||||
|
ps[myconnectindex].palookup = ud.pcolor[myconnectindex] = ud.color;
|
||||||
|
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
||||||
|
sprite[ps[myconnectindex].i].pal = ud.color;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
x = strget(200,50-9,buf,12,0);
|
x = strget(200,50-9,buf,12,0);
|
||||||
if (x) {
|
if (x) {
|
||||||
|
@ -704,10 +704,10 @@ player_menu_update:
|
||||||
modval(0,3,(int *)&ud.weaponswitch,1,probey==3);
|
modval(0,3,(int *)&ud.weaponswitch,1,probey==3);
|
||||||
|
|
||||||
{
|
{
|
||||||
int i, disallowed[] = { 1, 2, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 22 };
|
int i, disallowed[] = { 1, 2, 3, 4, 5, 6, 7, 8, 17, 18, 19, 20, 22 };
|
||||||
|
|
||||||
for(i=0;i<(signed)(sizeof(disallowed)/sizeof(disallowed[0]));i++) {
|
for(i=0;i<(signed)(sizeof(disallowed)/sizeof(disallowed[0]));i++) {
|
||||||
if(ud.color == disallowed[i]) {
|
if(ud.color == disallowed[i]) {
|
||||||
if(ud.color > ud_color)
|
if(ud.color > ud_color)
|
||||||
ud.color++;
|
ud.color++;
|
||||||
else ud.color--;
|
else ud.color--;
|
||||||
|
@ -724,8 +724,8 @@ player_menu_update:
|
||||||
|
|
||||||
if (current_menu == 20002) {
|
if (current_menu == 20002) {
|
||||||
gametext(200,50-9,myname,0,2+8+16); }
|
gametext(200,50-9,myname,0,2+8+16); }
|
||||||
{ char *s[] = { "Auto","","","Blue","","","","","","","Dk red","Green","Gray","Dk gray","Dk green","Brown",
|
{ char *s[] = { "Auto","","","","","","","","","Blue","Dk red","Green","Gray","Dk gray","Dk green","Brown",
|
||||||
"Dk blue","","","","","Red","","Yellow","","" };
|
"Dk blue","","","","","Red","","Yellow","","" };
|
||||||
gametext(200,50+20-9,s[ud.color],0,2+8+16); }
|
gametext(200,50+20-9,s[ud.color],0,2+8+16); }
|
||||||
{ char *s[] = { "Off", "Full", "Hitscan" };
|
{ char *s[] = { "Off", "Full", "Hitscan" };
|
||||||
gametext(200,50+20+20-9,s[AutoAim],0,2+8+16); }
|
gametext(200,50+20+20-9,s[AutoAim],0,2+8+16); }
|
||||||
|
|
|
@ -1221,7 +1221,7 @@ void resetpspritevars(char g)
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
for(k=0;k<MAXPLAYERS-1;k++) {
|
for(k=0;k<MAXPLAYERS-1;k++) {
|
||||||
if(which_palookup == ud.pcolor[k]) {
|
if(which_palookup == ps[k].palookup) {
|
||||||
which_palookup++;
|
which_palookup++;
|
||||||
if( which_palookup >= 17 )
|
if( which_palookup >= 17 )
|
||||||
which_palookup = 9;
|
which_palookup = 9;
|
||||||
|
|
Loading…
Reference in a new issue