Sizeat: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Dood! (talk | contribs)
Added some useful info, some rewording.
Line 1: Line 1:
sizeat <xrepeat> <yrepeat>
sizeat <xrepeat> <yrepeat>


Like [[sizeto]], but instantaneous. 64 64 is the default sprite size.
Like [[sizeto]], but instantaneous. The default sprite size is 64 64.


Actors with [[xrepeat]] or [[yrepeat]] zero are deleted. Wich mean that sizeat 0 0 = [[killit]]. Changing these values in actor PLAYER causes seconday effects reproducing Shrinker weapon hit.
Actors with [[xrepeat]] or [[yrepeat]] of zero are deleted. A sizeat 0 0 is the same as killit.
 
== Notes ==
 
Most enemy actors' default size is 40 40, with expections like SHARK, TANK and bosses.
 
Changing these values in actor APLAYER (default size: 42 36) will modify the player's view.
This happens because the game is hard-coded to assume that a smaller APLAYER has been shrunk while a larger APLAYER has been "microwaved" by the Expander weapon. In this case:
 
* Setting a lower xrepeat will replace the player's weapon with two fists.
* Setting a lower yrepeat will set the view at a low angle and prevent the player from jumping.
* Setting a higher xrepeat or yrepeat results in increasing the field of view.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Revision as of 12:07, 5 June 2008

sizeat <xrepeat> <yrepeat>

Like sizeto, but instantaneous. The default sprite size is 64 64.

Actors with xrepeat or yrepeat of zero are deleted. A sizeat 0 0 is the same as killit.

Notes

Most enemy actors' default size is 40 40, with expections like SHARK, TANK and bosses.

Changing these values in actor APLAYER (default size: 42 36) will modify the player's view. This happens because the game is hard-coded to assume that a smaller APLAYER has been shrunk while a larger APLAYER has been "microwaved" by the Expander weapon. In this case:

  • Setting a lower xrepeat will replace the player's weapon with two fists.
  • Setting a lower yrepeat will set the view at a low angle and prevent the player from jumping.
  • Setting a higher xrepeat or yrepeat results in increasing the field of view.