Editing ACS built-in functions

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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===
{|class="wikitable sortable
*void [[ChangeCeiling]](int tag, str flatname)
! Name
:Changes the ceiling texture of tagged sectors to flatname.
! Description
*void [[ChangeFloor]](int tag, str flatname)
|-
:Changes the floor texture of tagged sectors to flatname.
||[[ChangeCeiling]]||Changes the ceiling texture.
*[[GetSectorCeilingZ]]
|-
*[[GetSectorFloorZ]]
||[[ChangeFloor]]||Changes the floor texture.
*int [[GetSectorLightLevel]] (int tag)
|-
*[[TagWait]]
||[[GetSectorCeilingZ]]||Gets the ceiling height.
|-
||[[GetSectorFloorZ]]||Gets the floor height.
|-
||[[GetSectorLightLevel]]||Gets the light level.
|-
||[[SectorDamage]]||Damages things in sector.
|-
||[[SetSectorDamage]]||Modifies the damaging floor status.
|-
||[[TagWait]]||Waits for sectors to stop movement.
|}


===Things===
===Things===
*[[ActivatorTID]]
*[[ActivatorTID]]
*[[ChangeActorAngle]]
*[[ChangeActorPitch]]
*[[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
*[[GetActorAngle]]
*[[GetActorCeilingZ]]
*[[GetActorFloorZ]]
*[[GetActorLightLevel]]
*[[GetActorPitch]]
*[[GetActorProperty]]
*[[GetActorProperty]]
*[[GetActorVelX]]
*[[GetActorVelX]]
*[[GetActorVelY]]
*[[GetActorVelY]]
*[[GetActorVelZ]]
*[[GetActorVelZ]]
*[[GetActorX]]
*[[GetSigilPieces]]
*[[GetActorY]]
*[[GetActorZ]]
*[[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]])
===Player===
*[[CheckInventory]]
*[[CheckWeapon]]
*[[GetWeapon]]
*[[GetSigilPieces]]
*[[PlayerArmorPoints]]
*[[PlayerCount]]
*[[PlayerFrags]]
*[[PlayerHealth]]
*[[PlayerNumber]]
*[[SetWeapon]]
*[[TakeInventory]]


===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] ||
|-
|| || [[SetLineBlocking]] || || ||
|-
|-
||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]]
*fixed [[FixedSqrt]] (fixed number)
*int [[Random]] (int min, int max)
*int [[Random]] (int min, int max)
*int [[Sqrt]] (int number)
*int [[Sqrt]] (int number)
*[[Sin]]
*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]]
*[[GetLevelInfo]]
*[[SetAirControl]]
*[[SetAirControl]]
*[[SetAirFriction]]
*[[SetAirFriction]]
*[[SetGravity]]
*[[SinglePlayer]]
*[[SinglePlayer]]
*[[Timer]]
*[[Timer]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)