-- Original script (Semi-Eyes.lua) by "Roast Veg", apparently, though I received it second-hand. - Maximilian(mongoska) function Create(self) local thisID = ToActor(self).ID local MoObj for i = 1, MovableMan:GetMOIDCount() do if (i ~= thisID) and (MovableMan:GetRootMOID(i) == thisID) then MoObj = MovableMan:GetMOFromID(i) if MoObj.PresetName == "Maximilian Head" then self.Head = ToAttachable(MoObj) break end end end self.fired = false; end function Update(self) if self:GetController():IsState(Controller.WEAPON_FIRE) and self.Head:IsAttached() and self.FGLeg:IsAttached() and self.fired == false then local Emitter = CreateAEmitter("Maximilian Talon", "Maximilian.rte") local damagePar = CreateMOPixel("Maximilian Talon Slash", "Maximilian.rte") Emitter.Vel = self.Vel damagePar.Vel = Vector(30,0):RadRotate(self:GetAimAngle(true)); if self.HFlipped then Emitter.RotAngle = self.Head.RotAngle + 3.1415 else Emitter.RotAngle = self.Head.RotAngle end damagePar:SetWhichMOToNotHit(self,-1) damagePar.Pos = self.FGLeg.Pos + self.FGLeg:RotateOffset(Vector(0,-15)) Emitter.Pos = self.FGLeg.Pos + self.FGLeg:RotateOffset(Vector(0,-15)) MovableMan:AddParticle(damagePar) MovableMan:AddParticle(Emitter) -- Keeping this to provide the sprite and sound of the emitter. - Maximilian self.fired = true; end if self:IsPlayerControlled() == false then self:GetController():SetState(Controller.BODY_CROUCH, false); end local Ctrl = self:GetController(); if Ctrl:IsState(Controller.BODY_JUMPSTART) then else self.AngularVel = self.AngularVel * 0.75; end if not self:GetController():IsState(Controller.WEAPON_FIRE) then self.fired = false; end end