Clipdist: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
clipdist <number> | '''clipdist''' <number> | ||
Sets the [[actor]]'s clipdist to <number>. This is equivalent to [[setactor]][THISACTOR].clipdist [[gamevar]]. | Sets the [[actor]]'s clipdist to <number>. This is equivalent to [[setactor]][THISACTOR].clipdist [[gamevar]]. | ||
In engine terms, the [[sprite]]'s clipdist member determines how big the [[sprite]]'s clipping sphere is. | In engine terms, the [[sprite]]'s clipdist member determines how big the [[sprite]]'s clipping sphere is. | ||
== Notes == | |||
The clipdist is only used for sprites that are not flat. If it is flat, the game would use the sprite's dimensions as its clipping boundaries. | |||
If the sprite is not coded with a clipdist, it will use the clipdist as shown in the map editor (default is 32). Keep this in mind, as a sprite's clipdist is independent of its size. The player and projectiles can easily pass through a large sprite if its clipdist is too low. | |||
The clipdist values for certain hard-coded actors are shown below: | |||
EGG: 24 | |||
SHARK: 40 | |||
TANK: 100 | |||
All bosses (palette 0): 164 | |||
All enemies: 80 | |||
Most props: 32 | |||
BLIMP: 128 (The large blimp in E3L9 is difficult to hit because of this low value.) | |||
[[Category:Duke3D 1.3/1.5 commands]] | [[Category:Duke3D 1.3/1.5 commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |
Latest revision as of 11:00, 4 May 2009
clipdist <number>
Sets the actor's clipdist to <number>. This is equivalent to setactor[THISACTOR].clipdist gamevar.
In engine terms, the sprite's clipdist member determines how big the sprite's clipping sphere is.
Notes
The clipdist is only used for sprites that are not flat. If it is flat, the game would use the sprite's dimensions as its clipping boundaries.
If the sprite is not coded with a clipdist, it will use the clipdist as shown in the map editor (default is 32). Keep this in mind, as a sprite's clipdist is independent of its size. The player and projectiles can easily pass through a large sprite if its clipdist is too low.
The clipdist values for certain hard-coded actors are shown below:
EGG: 24
SHARK: 40
TANK: 100
All bosses (palette 0): 164
All enemies: 80
Most props: 32
BLIMP: 128 (The large blimp in E3L9 is difficult to hit because of this low value.)