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) | |||
*[[TagWait]] | |||
===Things=== | ===Things=== | ||
*[[ActivatorTID]] | *[[ActivatorTID]] | ||
*[[CheckActorCeilingTexture]] | *[[CheckActorCeilingTexture]] | ||
*[[CheckActorClass]] | *[[CheckActorClass]] | ||
Line 58: | Line 44: | ||
*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. | ||
*[[CheckWeapon]] | |||
*int [[ClassifyActor]](int tid) | *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: | ||
Line 69: | Line 56: | ||
:*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]] | ||
*[[ | *[[GetSigilPieces]] | ||
*[[IsTIDUsed]] | *[[IsTIDUsed]] | ||
*[[PlayerArmorPoints]] | |||
*[[PlayerFrags]] | |||
*[[PlayerHealth]] | |||
*void [[SectorDamage]] (int tag, int amount, str type, str protection_item, int flags) | |||
*[[SetActivator]] | *[[SetActivator]] | ||
*[[SetActivatorToTarget]] | *[[SetActivatorToTarget]] | ||
Line 98: | Line 82: | ||
*[[SpawnSpotFacingForced]] | *[[SpawnSpotFacingForced]] | ||
*[[SpawnSpotForced]] | *[[SpawnSpotForced]] | ||
*[[TakeInventory]] | |||
*int ThingCount (int type, int tid) | *int ThingCount (int type, int tid) | ||
*int ThingCountName (str classname, int tid) | *int ThingCountName (str classname, int tid) | ||
Line 105: | Line 90: | ||
*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 110: | ||
|- | |- | ||
|| || [[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 175: | Line 145: | ||
===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 190: | Line 159: | ||
*[[GameSkill]] | *[[GameSkill]] | ||
*[[GameType]] | *[[GameType]] | ||
*[[SetAirControl]] | *[[SetAirControl]] | ||
*[[SetAirFriction]] | *[[SetAirFriction]] | ||
*[[SinglePlayer]] | *[[SinglePlayer]] | ||
*[[Timer]] | *[[Timer]] |