Ejemplo n.º 1
0
        public void SendShot(SendShotToServerEvent evt, UnblockedHammerNode hammer)
        {
            SelfHammerShotEvent eventInstance = new SelfHammerShotEvent {
                RandomSeed    = hammer.hammerPelletCone.ShotSeed,
                ShotDirection = evt.TargetingData.BestDirection.Dir
            };

            base.ScheduleEvent(eventInstance, hammer);
        }
Ejemplo n.º 2
0
        public void SendShot(SendShotToServerEvent evt, UnblockedWeaponNode weaponNode)
        {
            SelfShotEvent eventInstance = new SelfShotEvent();

            if (evt.TargetingData.BestDirection != null)
            {
                eventInstance.ShotDirection = evt.TargetingData.BestDirection.Dir;
            }
            else
            {
                eventInstance.ShotDirection = new MuzzleLogicAccessor(weaponNode.muzzlePoint, weaponNode.weaponInstance).GetFireDirectionWorld();
            }
            base.ScheduleEvent(eventInstance, weaponNode);
        }
Ejemplo n.º 3
0
 public void RequestBulletBuild(SendShotToServerEvent evt, UnblockedWeaponNode weaponNode)
 {
     base.ScheduleEvent(new BulletBuildEvent(evt.TargetingData.BestDirection.Dir), weaponNode);
 }