Subversion Repositories nw_plus

Compare Revisions

Ignore whitespace Rev HEAD → Rev 1

/nw_plus/nwfix.m32
27,7 → 27,7
*/
 
include DEFS.CON
include NWDefs.con
include nwinter_hrp/NWDefs.con
 
gamevar i 0 0
gamevar k 0 0
35,134 → 35,76
 
onevent EVENT_DRAW2DSCREEN
// Fixing sounds.
for i allsprites, ifactor MUSICANDSFX
{
for i allsprites, ifactor MUSICANDSFX
{
// fixing ambient sounds
switch .lotag
switch .lotag
 
case 91
case 308
set .lotag 426
break
case 91
case 308
set .lotag 426
break
 
case 244
set .lotag 438
break
endswitch
}
case 244
set .lotag 438
break
endswitch
}
 
 
// fixing one-time sector sounds
for k allsectors
{
switch sector[k].lotag
for k allsectors
{
getsector[k].lotag l
switch l
 
case 10091
case 10308
set sector[k].lotag 10426
break
case 10091
case 10308
set sector[k].lotag 10426
break
 
case 10244
set sector[k].lotag 10438
break
case 10244
set sector[k].lotag 10438
break
 
endswitch
endswitch
setsector[k].lotag l
}
 
/*
ifvarg sector[k].lotag 9999
ifvarl sector[k].lotag 20000
{
al k
al sector[k].lotag
}
*/
 
// texture replacements:
switch sector[k].floorpicnum
case 198
ifvare sector[k].floorpal 1
{
al k
set sector[k].floorpicnum 3670
set sector[k].floorpal 0
}
break
 
endswitch
switch sector[k].ceilingpicnum
case 198
ifvare sector[k].ceilingpal 1
{
al k
set sector[k].ceilingpicnum 3670
set sector[k].ceilingpal 0
}
break
 
endswitch
}
 
for k allwalls
{
ifvare wall[k].pal 1
{
switch wall[k].picnum
case 198
al k
set wall[k].picnum 3670
set wall[k].pal 0
break
endswitch
switch wall[k].overpicnum
case 198
al k
set wall[k].overpicnum 3670
set wall[k].pal 0
break
endswitch
}
}
 
// Fixing actors.
 
// fixing actors already in the map
for i allsprites
{
switch .picnum
for i allsprites
{
switch .picnum
// Step 1: Santa
/*
// Step 1: Santa
case 2000 set .picnum 3900 break
case 2045 set .picnum 3905 break
case 2000 set .picnum 3900 break
case 2045 set .picnum 3905 break
*/
// Step 2: Pig Cops
/*
// Step 2: Pig Cops
case 2002 set .picnum 2000 break
case 2003 set .picnum 2001 break
case 2047 set .picnum 2045 break
case 2002 set .picnum 2000 break
case 2003 set .picnum 2001 break
case 2047 set .picnum 2045 break
*/
endswitch
}
endswitch
}
// fixing actors which spawn on triggers
for i allsprites, ifactor RESPAWN
{
switch .hitag
for i allsprites, ifactor RESPAWN
{
switch .lotag
// Step 1: Santa
/*
// Step 1: Santa
case 2000 set .hitag 3900 addlogvar .x addlogvar .y break
case 2045 set .hitag 3905 addlogvar .x addlogvar .y break
case 2000 set .lotag 3900 break
case 2045 set .lotag 3905 break
*/
// Step 2: Pig Cops
/*
// Step 2: Pig Cops
case 2002 set .hitag 2000 addlogvar .x addlogvar .y break
case 2003 set .hitag 2001 addlogvar .x addlogvar .y break
case 2047 set .hitag 2045 addlogvar .x addlogvar .y break
case 2002 set .lotag 2000 break
case 2003 set .lotag 2001 break
case 2047 set .lotag 2045 break
*/
endswitch
}
endswitch
}
endevent