public override void Initialize() { base.Initialize(); this._harpoon = new Harpoon((Thing)this); Level.Add((Thing)this._harpoon); this._sightHit = new Sprite("laserSightHit"); this._sightHit.CenterOrigin(); this._ropeSprite = new Sprite("grappleWire"); this._ropeSprite.center = new Vec2(8f, 0.0f); }
public override void Initialize() { base.Initialize(); this._harpoon = new Harpoon((Thing)this); Level.Add((Thing)this._harpoon); if (Level.current is Editor) { return; } Vec2 position = this.position; this.position.y += (float)((int)this.length * 16 - 8); this._harpoon.noisy = false; this._harpoon.Fire(position + new Vec2(0.0f, -8f), new Vec2(0.0f, -1f)); this._rope = new Rope(this.x, this.y, (Thing)null, (Thing)this._harpoon, (Thing)this.duck, true, this._vinePartSprite); if ((double)this.initLength != 0.0) { this._rope.properLength = this.initLength; } Level.Add((Thing)this._rope); }