// Function from file: special.dm public override dynamic Bump(Ent_Static Obstacle = null, dynamic yes = null) { dynamic M = null; if (!Lang13.Bool(yes)) { return(null); } if (Obstacle == this.firer) { this.loc = Obstacle.loc; return(null); } Obstacle.ex_act(2); GlobalFuncs.playsound(this.loc, "sound/effects/meteorimpact.ogg", 40, 1); foreach (dynamic _a in Lang13.Enumerate(GlobalFuncs.ultra_range(10, this))) { M = _a; if (!Lang13.Bool(M.stat)) { GlobalFuncs.shake_camera(M, 3, 1); } } GlobalFuncs.qdel(this); return(null); }
// Function from file: swarmer.dm public void DisIntegrate(Ent_Static target = null) { GlobalFuncs.PoolOrNew(typeof(Obj_Effect_Overlay_Temp_Swarmer_Disintegration), GlobalFuncs.get_turf(target)); this.do_attack_animation(target); this.changeNext_move(8); target.ex_act(3); return; }
// Function from file: sniper.dm public override dynamic on_hit(Ent_Static target = null, double?blocked = null, dynamic hit_zone = null) { blocked = blocked ?? 0; if (blocked != 100 && !(target is Mob) && Lang13.Bool(this.breakthings)) { target.ex_act(Rand13.Int(1, 2)); } return(base.on_hit(target, blocked, (object)(hit_zone))); }
// Function from file: immovable_rod.dm public override dynamic Bump(Ent_Static Obstacle = null, dynamic yes = null) { Ent_Static H = null; if (Rand13.PercentChance(10)) { GlobalFuncs.playsound(this, "sound/effects/bang.ogg", 50, 1); this.audible_message("CLANG"); } if (Obstacle != null && Rand13.PercentChance(25)) { this.x = Obstacle.x; this.y = Obstacle.y; } if (Obstacle is Tile || Obstacle is Obj) { if (Obstacle.density) { Obstacle.ex_act(2); } } else if (Obstacle is Mob) { if (Obstacle is Mob_Living_Carbon_Human) { H = Obstacle; H.visible_message("<span class='danger'>" + H.name + " is penetrated by an immovable rod!</span>", "<span class='userdanger'>The rod penetrates you!</span>", "<span class ='danger'>You hear a CLANG!</span>"); ((dynamic)H).adjustBruteLoss(160); } if (Obstacle.density || Rand13.PercentChance(10)) { Obstacle.ex_act(2); } } return(null); }
// Function from file: beams.dm public override dynamic on_hit(Ent_Static target = null, double?blocked = null, dynamic hit_zone = null) { blocked = blocked ?? 0; dynamic _default = null; _default = base.on_hit(target, blocked, (object)(hit_zone)); if (target is Tile || target is Obj_Structure) { target.ex_act(2); } return(_default); }
// Function from file: meteors.dm public virtual void ram_turf(dynamic T = null) { Ent_Static A = null; foreach (dynamic _a in Lang13.Enumerate(T, typeof(Ent_Static))) { A = _a; if (A != this) { A.ex_act(this.hitpwr); } } if (Lang13.Bool(T)) { ((Ent_Static)T).ex_act(this.hitpwr); } return; }
// Function from file: meteors.dm public override dynamic Bump(Ent_Static Obstacle = null, dynamic yes = null) { Obstacle.ex_act(this.hitpwr); this.get_hit(); return(null); }