Subversion Repositories nw_plus

Rev

Rev 14 | Rev 30 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 22
Line 1163... Line 1163...
1163
1163
1164
useractor notenemy NWEFFECTOR 0 
1164
useractor notenemy NWEFFECTOR 0 
1165
 cstat 32768
1165
  cstat 32768
1166
 // sizeat 1 1
1166
  // sizeat 1 1
1167
1167
1168
 ifspritepal 31
1168
  ifspritepal 31 // phone ringing effect
1169
   {
1169
  {
-
 
1170
    /*
1170
      getplayer[THISACTOR].cursectnum temp3
1171
    getplayer[THISACTOR].cursectnum temp3
1171
      switch temp3
1172
    switch temp3
1172
        case 60 case 61 case 62 case 63
1173
      case 60 case 61 case 62 case 63
1173
        case 86 case 87
1174
      case 86 case 87
1174
        case 299 case 300 case 301 case 302 case 303 case 304 case 305 case 306 case 307 case 308 case 309
1175
      case 299 case 300 case 301 case 302 case 303 case 304 case 305 case 306 case 307 case 308 case 309
1175
        case 310 case 311 case 312 case 313 case 314 case 315 case 316 case 317
1176
      case 310 case 311 case 312 case 313 case 314 case 315 case 316 case 317
1176
         soundonce PHONE_RING 
1177
        soundonce PHONE_RING
1177
        break
1178
        break
-
 
1179
-
 
1180
      default
-
 
1181
        stopsound PHONE_RING
-
 
1182
        break
1178
      endswitch
1183
    endswitch
-
 
1184
    */
-
 
1185
-
 
1186
    ifpdistl 8192 // 4096
-
 
1187
      soundonce PHONE_RING
-
 
1188
    ifpdistg 16384
-
 
1189
      stopsound PHONE_RING
1179
1190
1180
      ifpdistl RETRIEVEDISTANCE
1191
    ifpdistl RETRIEVEDISTANCE
1181
      ifp pfacing
1192
      ifp pfacing
1182
      ifhitspace
1193
        ifhitspace
1183
      ifvare temp2 0
1194
          ifvare temp2 0
1184
        {
1195
          {
1185
          setvar temp 0
1196
            setvar temp 0
1186
          setvar temp2 1
1197
            setvar temp2 1
-
 
1198
            setvar temp3 0
-
 
1199
            setvar tempb 0
1187
        }
1200
          }
1188
1201
1189
      ifvare temp2 1
1202
    ifvare temp2 1
1190
        {
1203
    {
1191
          addvar temp 1
1204
      addvar temp 1
1192
1205
1193
          stopsound PHONE_RING
1206
      stopsound PHONE_RING
-
 
1207
      ifvare temp 1
1194
          ifvare temp 1 sound PHONE_PICKUP
1208
        sound PHONE_PICKUP
1195
     else ifvare temp 39
1209
      else ifvare temp 30
1196
            {
1210
      {
1197
              setvar tempb 0
1211
        setvar tempb 0
1198
              randvar tempb 3
1212
        randvar tempb 3
-
 
1213
1199
              switch tempb
1214
        switch tempb
-
 
1215
          case 0
1200
               case 0 sound LOWANG1 break
1216
            sound LOWANG1
-
 
1217
            setvar temp3 57
-
 
1218
            break
-
 
1219
          case 1
1201
               case 1 sound LOWANG2 break
1220
            sound LOWANG2
-
 
1221
            setvar temp3 124
-
 
1222
            break
-
 
1223
          case 2
1202
               case 2 sound LOWANG3 break
1224
            sound LOWANG3
-
 
1225
            setvar temp3 121
-
 
1226
            break
-
 
1227
          case 3
1203
               case 3 sound LOWANG4 break
1228
            sound LOWANG4
-
 
1229
            setvar temp3 156
-
 
1230
            break
1204
              endswitch
1231
        endswitch
-
 
1232
-
 
1233
        addvar temp3 60
-
 
1234
        setvar tempb 0
-
 
1235
      }
-
 
1236
      else ifvarvare temp temp3
-
 
1237
      {
-
 
1238
        sound PHONE_HANGUP
-
 
1239
        setvarvar tempb temp3
-
 
1240
        addvar tempb 150
1205
            }
1241
      }
1206
     else ifvare temp 195 sound PHONE_HANGUP
-
 
1207
     else ifvare temp 247
1242
      else ifvarvare temp tempb
1208
            {
1243
      {
1209
              setvar temp2 0
1244
        setvar temp2 0
1210
              setvar temp 0
1245
        setvar temp 0
1211
            }
1246
      }
1212
        }
1247
    }