Editing FireShotgun

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Codepointer |
Fires player shotgun attack. Seven tracers are fired using "never" accuracy (a moderate horizontal spread with no vertical error), each doing standard bullet damage of 5, 10 or 15. The player object will emit the ''shotgn'' sound effect and transfer to its second attack frame, with gun flash.
description=Fires player shotgun attack. |
 
usage='''FireShotgun'''|
No arguments are used.
parameters=none|
 
notes=Seven tracers are fired using "never" accuracy (a moderate horizontal spread with no vertical error), each doing standard bullet damage of 5, 10 or 15. The player object will emit the ''shotgn'' sound effect and transfer to its second attack frame, with gun flash.
==Example==
|
====Frame sequence of shotgun in Doom====
examples=From ''base\frames.edf'':
First three frame lines correspond to holding the gun, respectively changing it or to it, and the nine numbered ones control the actual attacking sequence. Notice a delay of three tics before FireShotgun takes effect. The last two ("FLASH") frames are drawn over the gun sprite when FireShotgun is invoked, and their codepointers control the brief lighting effect when a shot is done in Doom.
  <nowiki>frame S_SGUN2      { cmp = "SHTG|*|*|7|'''FireShotgun'''|@next";      dehackednum = 22 }</nowiki>|
  # Shotgun
seealso=*[[FireCustomBullets]]
frame S_SGUN      { cmp = "SHTG|*|*|*|[[WeaponReady]]|@this";      dehackednum = 18 }
*[[List_of_codepointers#Attacks|Player attack codepointers]]
frame S_SGUNDOWN  { cmp = "SHTG|*|*|*|[[Lower]]      |@this";      dehackednum = 19 }
}}
frame S_SGUNUP    { cmp = "SHTG|*|*|*|[[Raise]]      |@this";      dehackednum = 20 }
frame S_SGUN1      { cmp = "SHTG|*|*|3|*          |@next";      dehackednum = 21 }
frame S_SGUN2      { cmp = "SHTG|*|*|7|'''FireShotgun'''|@next";      dehackednum = 22 }
frame S_SGUN3      { cmp = "SHTG|1|*|5|*          |@next";      dehackednum = 23 }
frame S_SGUN4      { cmp = "SHTG|2|*|5|*          |@next";      dehackednum = 24 }
frame S_SGUN5      { cmp = "SHTG|3|*|4|*          |@next";      dehackednum = 25 }
frame S_SGUN6      { cmp = "SHTG|2|*|5|*          |@next";      dehackednum = 26 }
frame S_SGUN7      { cmp = "SHTG|1|*|5|*         |@next";      dehackednum = 27 }
frame S_SGUN8      { cmp = "SHTG|*|*|3|*          |@next";      dehackednum = 28 }
frame S_SGUN9      { cmp = "SHTG|*|*|7|[[ReFire]]     |S_SGUN";      dehackednum = 29 }
frame S_SGUNFLASH1 { cmp = "SHTF|*|T|4|[[Light1]]    |@next";      dehackednum = 30 }
frame S_SGUNFLASH2 { cmp = "SHTF|1|T|3|[[Light2]]    |S_LIGHTDONE"; dehackednum = 31 }
 
==See also==
*[[List of codepointers]]


[[Category:Codepointers]]
[[Category:Codepointers]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: