Subversion Repositories nw_plus

Compare Revisions

Regard whitespace Rev 22 → Rev 21

/nw_plus/NWinter.con
1165,9 → 1165,8
cstat 32768
// sizeat 1 1
 
ifspritepal 31 // phone ringing effect
ifspritepal 31
{
/*
getplayer[THISACTOR].cursectnum temp3
switch temp3
case 60 case 61 case 62 case 63
1176,18 → 1175,8
case 310 case 311 case 312 case 313 case 314 case 315 case 316 case 317
soundonce PHONE_RING
break
 
default
stopsound PHONE_RING
break
endswitch
*/
 
ifpdistl 8192 // 4096
soundonce PHONE_RING
ifpdistg 16384
stopsound PHONE_RING
 
ifpdistl RETRIEVEDISTANCE
ifp pfacing
ifhitspace
1195,8 → 1184,6
{
setvar temp 0
setvar temp2 1
setvar temp3 0
setvar tempb 0
}
 
ifvare temp2 1
1204,43 → 1191,21
addvar temp 1
 
stopsound PHONE_RING
ifvare temp 1
sound PHONE_PICKUP
else ifvare temp 30
ifvare temp 1 sound PHONE_PICKUP
else ifvare temp 39
{
setvar tempb 0
randvar tempb 3
 
switch tempb
case 0
sound LOWANG1
setvar temp3 57
break
case 1
sound LOWANG2
setvar temp3 124
break
case 2
sound LOWANG3
setvar temp3 121
break
case 3
sound LOWANG4
setvar temp3 156
break
case 0 sound LOWANG1 break
case 1 sound LOWANG2 break
case 2 sound LOWANG3 break
case 3 sound LOWANG4 break
endswitch
 
addvar temp3 60
setvar tempb 0
}
else ifvarvare temp temp3
else ifvare temp 195 sound PHONE_HANGUP
else ifvare temp 247
{
sound PHONE_HANGUP
setvarvar tempb temp3
addvar tempb 150
}
else ifvarvare temp tempb
{
setvar temp2 0
setvar temp 0
}