예제 #1
0
 public override void onExplode(ProximityMine obj, Point3F pos)
 {
     if (this["damageRadius"].AsFloat() > 0)
     {
         radiusDamage.RadiusDamage(obj, pos, this["damageRadius"].AsFloat(), this["radiusDamage"].AsFloat(), this["damageType"], this["areaImpulse"].AsFloat());
     }
 }
예제 #2
0
        public override int onThrow(ShapeBase player, int amount)
        {
            player.decInventory(this, 1);
            ObjectCreator tch = new ObjectCreator("ProximityMine", string.Empty);

            tch["datablock"]    = getName();
            tch["sourceObject"] = player;
            tch["rotation"]     = new AngAxisF(0, 0, 1, (float)(new Random().NextDouble() * 360));
            tch["static"]       = false;
            tch["client"]       = player["client"];
            ProximityMine pm = (tch.Create());

            ((SimSet)"MissionCleanup").pushToBack(pm);
            return(pm);
        }
 public override void onExplode(ProximityMine obj, Point3F pos)
 {
     if (this["damageRadius"].AsFloat() > 0)
         radiusDamage.RadiusDamage(obj, pos, this["damageRadius"].AsFloat(), this["radiusDamage"].AsFloat(), this["damageType"], this["areaImpulse"].AsFloat());
 }
 public override void onTriggered(ProximityMine obj, SceneObject target)
 {
 }
예제 #5
0
 public override void onTriggered(ProximityMine obj, SceneObject target)
 {
 }
public virtual  void onExplode(ProximityMine obj, Point3F pos){}
public virtual  void onTriggered(ProximityMine obj, SceneObject target){}