Sizeat: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
One (talk | contribs)
No edit summary
 
(5 intermediate revisions by 4 users not shown)
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]] of zero are deleted. A sizeat 0 0 is the same as killit.
 
== Notes ==
 
The default size of most enemy actors is 40 40. Exceptions are SHARK, TANK (60 60) and bosses (80 80).
 
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.


If you want to change the size of an actor sprites, remember that if it is not respawned, it is already on Build withour respawn, you must already have the custom sizeat on it usign 8, 4, 6 and 2 keys on the sprite (except original game enemis).
To do it:
You have a custom boss with sizeat 80 80, so you must click 16 times the keys 6 and 2 (80 - 64 = 16) to grow it.
If the enemy is 48 40, you must press key 8 (y) 16 times (64 - 48 = 16) and key 4 (x) 24 times (64 - 40 = 24).


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

Latest revision as of 12:29, 4 May 2009

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

The default size of most enemy actors is 40 40. Exceptions are SHARK, TANK (60 60) and bosses (80 80).

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.