296 {
297 super.OnRPC(sender, rpc_type, ctx);
298
299 if ( !
GetGame().IsDedicatedServer() )
300 {
301 switch (rpc_type)
302 {
303 case ERPCs.RPC_TRAP_VICTIM:
304 Param1<EntityAI> victim = new Param1<EntityAI>(null);
305
306 if (ctx.
Read(victim))
307 {
308 if (victim.param1)
310 }
311
312 break;
313
314 case ERPCs.RPC_TRAP_DISARM:
316 break;
317
319
320 Param1<bool> p = new Param1<bool>(false);
321
322 bool isActivating = false;
324 isActivating = p.param1;
325
326 break;
327 }
328 }
329 }
void SnapOnObject(EntityAI victim)
void OnDisarm()
also called from RPC on client
proto bool Read(void value_in)
proto native CGame GetGame()