Editing ACS built-in functions
From Eternity Wiki
Jump to navigationJump to search
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 24: | Line 24: | ||
===Sectors=== | ===Sectors=== | ||
*void [[ChangeCeiling]](int tag, str flatname) | |||
:Changes the ceiling texture of tagged sectors to flatname. | |||
*void [[ChangeFloor]](int tag, str flatname) | |||
:Changes the floor texture of tagged sectors to flatname. | |||
*[[GetSectorCeilingZ]] | |||
*[[GetSectorFloorZ]] | |||
*int [[GetSectorLightLevel]] (int tag) | |||
===Things=== | ===Things=== | ||
*[[CheckActorClass]] | *[[CheckActorClass]] | ||
*[[CheckActorProperty]] | *[[CheckActorProperty]] | ||
*bool | *bool CheckFlag(int tid, str flag) | ||
:Returns true if the first thing with the given tid has the given flag enabled. | :Returns true if the first thing with the given tid has the given flag enabled. | ||
*[[CheckProximity]] | *[[CheckProximity]] | ||
*bool CheckSight(int source, int dest, int flags) | *bool CheckSight(int source, int dest, int flags) | ||
:Returns true if there's a line of sight between at least one thing tagged as source and one thing tagged as dest. Currently flags is reserved and must be 0. | :Returns true if there's a line of sight between at least one thing tagged as source and one thing tagged as dest. Currently flags is reserved and must be 0. | ||
*int | *int ClassifyActor(int tid) | ||
:Checks the kind of thing tagged tid. It returns a set of flags, possibly combined: | :Checks the kind of thing tagged tid. It returns a set of flags, possibly combined: | ||
:*ACTOR_PLAYER (2): it's player-controlled | :*ACTOR_PLAYER (2): it's player-controlled | ||
Line 69: | Line 51: | ||
:*ACTOR_NONE (0): no thing found with this TID | :*ACTOR_NONE (0): no thing found with this TID | ||
:*ACTOR_WORLD (1): TID is 0 but activator isn't a thing | :*ACTOR_WORLD (1): TID is 0 but activator isn't a thing | ||
*[[GetActorProperty]] | *[[GetActorProperty]] | ||
*[[GetActorVelX]] | *[[GetActorVelX]] | ||
*[[GetActorVelY]] | *[[GetActorVelY]] | ||
*[[GetActorVelZ]] | *[[GetActorVelZ]] | ||
*[[IsTIDUsed]] | *[[IsTIDUsed]] | ||
*void SectorDamage (int tag, int amount, str type, str protection_item, int flags) | |||
*[[SetActivator]] | *[[SetActivator]] | ||
*[[SetActivatorToTarget]] | *[[SetActivatorToTarget]] | ||
Line 105: | Line 80: | ||
*void Thing_Projectile2 (int tid, int type, int angle, int speed, int vspeed, int gravity, int newtid) | *void Thing_Projectile2 (int tid, int type, int angle, int speed, int vspeed, int gravity, int newtid) | ||
*int UniqueTID ([int tid[, int limit]]) | *int UniqueTID ([int tid[, int limit]]) | ||
===Linedefs and sidedefs=== | ===Linedefs and sidedefs=== | ||
Line 138: | Line 100: | ||
|- | |- | ||
|| || [[ReplaceTextures]] || nothing || str old_texture_name, str new_texture_name[, int flags] || | || || [[ReplaceTextures]] || nothing || str old_texture_name, str new_texture_name[, int flags] || | ||
|- | |- | ||
||internal|| [[SetLineMonsterBlocking]] || || || Makes a linedef block or not block monsters. | ||internal|| [[SetLineMonsterBlocking]] || || || Makes a linedef block or not block monsters. | ||
Line 161: | Line 121: | ||
===Console=== | ===Console=== | ||
*int | *int GetCVar (str cvar) | ||
*string | *string GetCVarString (str cvar) | ||
*int GetPlayerInput (int player, int input) | *int GetPlayerInput (int player, int input) | ||
===Polyobjects=== | ===Polyobjects=== | ||
*[[GetPolyobjX]] | *[[GetPolyobjX]] | ||
*[[GetPolyobjY]] | *[[GetPolyobjY]] | ||
===Quake=== | ===Quake=== | ||
Line 175: | Line 133: | ||
===Math=== | ===Math=== | ||
*[[Cos]] | *[[Cos]] | ||
*int [[Random]] (int min, int max) | *int [[Random]] (int min, int max) | ||
*int [[Sqrt]] (int number) | *int [[Sqrt]] (int number) | ||
*[[ | *fixed [[FixedSqrt]] (fixed number) | ||
*[[VectorAngle]] | *[[VectorAngle]] | ||
*int [[VectorLength]] (int x, int y) | *int [[VectorLength]] (int x, int y) | ||
Line 188: | Line 145: | ||
===Level state=== | ===Level state=== | ||
*[[SetAirControl]] | *[[SetAirControl]] | ||
*[[SetAirFriction]] | *[[SetAirFriction]] | ||
==See also== | ==See also== |