public Attack_coldShoulder (A_Fighter attackOwner, float preAttackPeriod = 0.0f, float attackPeriod = 0.0f, float animationDuration = 0.0f):base(attackPeriod,attackOwner) { base.attack_name=attack_name; //_--------------------------------- //HB_Instruction(attackOwner, keyframe, "hitbox Name", damage, radius, attackMechanic, Particle) // ********* this goes in attacks that inherit A_Attack HB_KeyFrame onOffTime; List<HB_KeyFrame> keyFrames; HB_Instruction hbInstruct; // Right Fist keyFrames = new List<HB_KeyFrame>(); keyFrames.Add(new HB_KeyFrame(0.35f,1.8f)); hbInstruct = new HB_Instruction(attackOwner,keyFrames,"HB_Fist_R",20.0f,0.8f,null,null); base.hb_instructions.Add(hbInstruct); ///Left Fist keyFrames = new List<HB_KeyFrame>(); keyFrames.Add(new HB_KeyFrame(0.35f,1.8f)); hbInstruct = new HB_Instruction(attackOwner,keyFrames,"HB_Fist_L",20.0f,0.8f,null,null); base.hb_instructions.Add(hbInstruct); //JONATHAN'S ORIGINAL CODE this.preAttackPeriod = preAttackPeriod; this.attackPeriod = attackPeriod; this.animationDuration = animationDuration; this.postAttackPeriod = animationDuration - (preAttackPeriod + attackPeriod); }
public Attack_Shot04 (A_Fighter attackOwner, float preAttackPeriod = 0.0f, float attackPeriod = 0.0f, float animationDuration = 0.0f):base(attackPeriod,attackOwner) { base.attack_name=attack_name; //_--------------------------------- //HB_Instruction(attackOwner, keyframe, "hitbox Name", damage, radius, attackMechanic, Particle) // ********* this goes in attacks that inherit A_Attack HB_KeyFrame onOffTime; List<HB_KeyFrame> keyFrames; HB_Instruction hbInstruct; //JONATHAN'S ORIGINAL CODE this.preAttackPeriod = preAttackPeriod; this.attackPeriod = attackPeriod; this.animationDuration = animationDuration; this.postAttackPeriod = animationDuration - (preAttackPeriod + attackPeriod); // PROJECTILE ATTACK EXAMPLE // ************************************* keyFrames = new List<HB_KeyFrame>(); keyFrames.Add(new HB_KeyFrame(2.0f,8.0f)); //turn on, turn off keyframe //hbInstruct = new HB_Instruction(attackOwner,keyFrames,"P_MilkySpore",20.0f,1.5f,null,null); hbInstruct = new HB_Instruction(attackOwner,keyFrames,"P_MilkySpore",5.0f,1.5f,0.2f,new Vector3(1,0,0),new Vector3(0,5,0),2f,null,null); base.hb_instructions.Add(hbInstruct); }
public HB_Instruction DuplicateHBInstructions(HB_Instruction hbi) { HB_Instruction HBI = new HB_Instruction(hbi.owner,DuplicateKeyFrames(hbi.onOffTimes), hbi.jointName,hbi.damage,hbi.radius,hbi.attackMechanic,hbi.particleSystem); return HBI; }