A FireCrossbowPL1: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
JaecM (talk | contribs)
mNo edit summary
Quaker540 (talk | contribs)
m Replaced the deprecated action function
 
Line 6: Line 6:




The behavior of this function can be recreated by using [[A_FireCustomMissile]]:
The behavior of this function can be recreated by using [[A_FireProjectile]]:


A_FireCustomMissile ("CrossbowFX1", 0, 1, 0, 3)
A_FireProjectile ("CrossbowFX1", 0, 1, 0, 3)
A_FireCustomMissile ("CrossbowFX3", -4.5, 0, -2, 3)
A_FireProjectile ("CrossbowFX3", -4.5, 0, -2, 3)
A_FireCustomMissile ("CrossbowFX3", 4.5, 0, 2, 3)
A_FireProjectile ("CrossbowFX3", 4.5, 0, 2, 3)


This codepointer is restricted to {{Class|Crossbow}} and derived classes.
This codepointer is restricted to {{Class|Crossbow}} and derived classes.

Latest revision as of 05:37, 16 July 2019

A_FireCrossbowPL1
(no parameter)

Shoots one CrossbowFX1 as a main projectile and two CrossbowFX3 that deviate from the main by an angle of 4.5°, one of the right, the other on the left.


The behavior of this function can be recreated by using A_FireProjectile:

A_FireProjectile ("CrossbowFX1", 0, 1, 0, 3)
A_FireProjectile ("CrossbowFX3", -4.5, 0, -2, 3)
A_FireProjectile ("CrossbowFX3",  4.5, 0,  2, 3)

This codepointer is restricted to Crossbow and derived classes.

Examples

This example is taken straight from the Crossbow from Heretic.

 Fire:
   CRBW D 6 A_FireCrossbowPL1
   CRBW EFGH 3
   CRBW AB 4
   CRBW C 5 A_ReFire
   Goto Ready