EVENT GETSHOTRANGE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
mNo edit summary
Line 1: Line 1:
{{EventTable|1=EVENT_GETSHOTRANGE|2=player firing the projectile|3=[[i|player->i]]|4=0 values}}
EVENT_GETSHOTRANGE is a [[EDuke32_event_list|Game Event]].
EVENT_GETSHOTRANGE is a [[EDuke32_event_list|Game Event]].


This [[event]] is triggered at the moment that a hitscan projectile is fired from a player, including the pistol, shotgun and chaingun (this includes all weapon that hit instantly rather than traveling through the air). Adjusting [[ANGRANGE]] and [[ZRANGE]] will effect the degree of randomness of the projectile's trajectory. The default value for ANGRANGE is 32, and 256 for ZRANGE.
This [[event]] is triggered at the moment that a hitscan projectile is fired from a player, including the pistol, shotgun and chaingun, as well as all custom hitscan projectiles.
 
[[ANGRANGE]] determines the horizontal spread, and [[ZRANGE]] determines the vertical spread of the hitscan projectiles.
 
The default value for ANGRANGE is 32, and 256 for ZRANGE.


[[Category:Events]]
[[Category:Events]]

Revision as of 10:40, 5 February 2022

Event ID player# THISACTOR RETURN
EVENT_GETSHOTRANGE player firing the projectile player->i 0 values

EVENT_GETSHOTRANGE is a Game Event.

This event is triggered at the moment that a hitscan projectile is fired from a player, including the pistol, shotgun and chaingun, as well as all custom hitscan projectiles.

ANGRANGE determines the horizontal spread, and ZRANGE determines the vertical spread of the hitscan projectiles.

The default value for ANGRANGE is 32, and 256 for ZRANGE.