New pages
From Eternity Wiki
Jump to navigationJump to search
- 05:08, 10 May 2026 GetPlayerInput (hist | edit) [1,214 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Gets information about a player's input. |usage=''int'' '''GetPlayerInput'''(''int player'', ''int type'') |parameters= *''player'': player index, from 0 to 3. Use -1 for activator. *''type'': one of the following: :*'''INPUT_OLDBUTTONS''' (0): unused, returns 0 :*'''INPUT_BUTTONS''' (1): will return a combination of the following flags: ::*'''BT_ATTACK''' (1): normal weapon attack ::*'''BT_USE''' (2): switch or door activation ::*'''BT_JUMP'''...")
- 04:24, 10 May 2026 GetLevelInfo (hist | edit) [948 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Gets various information from level. |usage=''int'' '''GetLevelInfo'''(''int type'') |parameters= *''type'': one of the following: :*'''LEVELINFO_PAR_TIME''' (0): par time, in seconds :*'''LEVELINFO_LEVELNUM''' (2): level index, in episode :*'''LEVELINFO_TOTAL_SECRETS''' (3): amount of secrets available in map :*'''LEVELINFO_FOUND_SECRETS''' (4): total found secrets by all players :*'''LEVELINFO_TOTAL_ITEMS''' (5): amount of MF_COUNTITEM ite...")
- 04:17, 10 May 2026 GetCVar (hist | edit) [480 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Get the value of an integer or string console variable. |usage= ''int'' '''GetCVar'''(''str cvar'') ''str'' '''GetCVarString'''(''str cvar'') |parameters= *''cvar'': console variable name |return=The value of the console variable, or 0 if unauthorized or inexistent. |notes=This only works with server variables, otherwise it will display an error and return 0. |id=ACC internal for '''GetCVar''', -56 for '''GetCVarString'''}}")
- 03:13, 10 May 2026 ClassifyActor (hist | edit) [723 bytes] Printz (talk | contribs) (Created page with "int ClassifyActor(int tid) Checks the kind of thing tagged tid. It returns a set of flags, possibly combined: ACTOR_PLAYER (2): it's player-controlled ACTOR_VOODOODOLL (8): it's a duplicate player start, not controlled by the player but still linked to it. Used in Boom maps for advanced mapping tricks ACTOR_MONSTER (16): it's a monster (has COUNTKILL or KILLABLE thing type flag set) ACTOR_MISSILE (128): it's a projectile in flight (has MISSILE thing type flag set)...")
- 03:12, 10 May 2026 PolyWait (hist | edit) [248 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Wait for tagged polyobject to finish movement before continuing script. |usage=''void'' '''PolyWait'''(''int polyid'') |parameters= *''polyid'': ID of polyobject |notes= Be careful with override actions. |id=ACC internal}}")
- 03:11, 10 May 2026 UniqueTID (hist | edit) [559 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns a free TID to apply to new things. |usage=''int'' '''UniqueTID'''([''int start''[, ''int limit'']])} |parameters= *''start'': optional start TID to count from *''limit'': optional limit of retries |return=New free TID to use, or 0 if it couldn't find one within limit. |notes=If ''start'' is not provided, it will start by trying a random TID. If attempted TID is currently in use, it will increment by up to ''limit'' tries, or keep lo...")
- 03:05, 10 May 2026 Timer (hist | edit) [147 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the level time, in tics. |usage=''int'' '''Timer'''() |return=Time since level start, in tics. |id=ACC internal}}")
- 03:04, 10 May 2026 Thing Projectile2 (hist | edit) [632 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Spawns and throws a projectile. |usage= ''void'' '''Thing_Projectile2'''(''int tid'', ''int type'', ''int angle'', ''int speed'', ''int vspeed'', ''int gravity'', ''int newtid'') |parameters= *''tid'': TID of map spots where to spawn projectiles *''type'': ACS spawn ID of projectiles to spawn *''angle'': direction *''speed'': fixed point horizontal speed, in eighths of unit *''vspeed'': fixed point vertical speed, in eighths of u...")
- 02:59, 10 May 2026 Thing Damage2 (hist | edit) [382 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Damages tagged things by given value and damagetype |usage=''int'' '''Thing_Damage2'''(''int tid'', ''int amount'', ''str type'') |parameters= *''tid'': TID of things to damage *''amount'': how much damage to deal *''type'': damagetype |return=How many things were damaged (or attempted to be damaged, if otherwise invulnerable). |id=ACC internal}}")
- 02:55, 10 May 2026 ThingCountSector (hist | edit) [458 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Counts all things from tagged sectors. |usage= ''int'' '''ThingCountSector'''(''int type'', ''int tid'', ''int tag'') ''int'' '''ThingCountNameSector'''(''str type'', ''int tid'', ''int tag'') |parameters= *''type'': ACS Spawn ID of things to count, if integer. Or thingtype name (Eternity or ZDoom style) if string. *''tid'': optional TID to filter them by *''tag'': sector tag of sectors to look in |id=ACC internal}}")
- 02:52, 10 May 2026 ThingCountName (hist | edit) [281 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Counts all things by name and possibly TID. |usage=''int'' '''ThingCountName'''(''str type'', ''int tid'') |parameters= *''type'': name of thing (both Eternity and ZDoom-style names are supported) *''tid'': optional TID to filter by |id=ACC internal}}")
- 02:50, 10 May 2026 ThingCount (hist | edit) [310 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Counts the number of things of given spawn ID. |usage=''int'' '''ThingCount'''(''int type'', ''int tid'') |parameters= *''type'': ACS spawn ID of things to count *''tid'': optional TID to filter by, if nonzero |return=The number of things by that criteria. |id=ACC internal }}")
- 02:47, 10 May 2026 GetMaxInventory (hist | edit) [802 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the maximum amount that the player can hold of a given item or power. |usage=''int'' '''GetMaxInventory'''(''int tid'', ''str itemname'') |parameters= *''tid'': TID of thing to check. Only works with players. *''itemname'': name of item or power to check. |return=Maximum amount |notes= This only works with players. If name is invalid, it returns 0. For '''Power...''' names, if it's '''PowerStrength''', it returns -1 (since i...")
- 02:40, 10 May 2026 UseInventory (hist | edit) [539 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|notes=Activates an inventory item held by player activator, if available. |usage=''void'' '''UseInventory'''(''str itemname'') |parameters= *''itemname'': name of inventory artifact to activate |notes= This won't work if there's no player activator. The item must be of the Heretic kind, which stays in player's possession until player presses a key to activate it. This function does the same action on the item. For Doom, this function will be usable onl...")
- 02:37, 10 May 2026 ClearInventory (hist | edit) [364 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Removes entire inventory of player activator. |usage=''void'' '''ClearInventory'''() |notes=This removes all armor, powers and possessions, but won't remove health. Player will be left with no weapons, not even the initial ones (e.g. fist and pistol in Doom). If there's no thing activator, it will affect all players. |id=ACC internal}}")
- 02:19, 10 May 2026 Power (hist | edit) [57 bytes] Printz (talk | contribs) (Created page with "# REDIRECT EDF_item_effects_and_inventory#powereffect")
- 02:19, 10 May 2026 GiveInventory (hist | edit) [890 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Gives inventory items to player activator. |usage=''void'' '''GiveInventory'''(''str itemname'', ''int amount'') |parameters= *''itemname'': name of item or power to give. *''amount'': how much to give. If -1, then give maximum possible. |notes= |id=ACC internal}}")
- 02:17, 10 May 2026 CheckInventory (hist | edit) [1,272 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Checks player activator ownership of items. |usage=''int'' '''CheckInventory'''(''str itemname'') |parameters= *''itemname'': name of EDF_item_effects_and_inventory or EDF_item_effects_and_inventory#powereffect |return=How many items or how much power is left. See notes. |notes= If item is invalid or undefined, it returns 0. For a power, which is defined by any of the names from the linked section, which start with '''Power.....")
- 02:05, 10 May 2026 Sqrt (hist | edit) [542 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the square root of a number. |usage= ''int'' '''Sqrt'''(''int number'') ''fixed'' '''FixedSqrt'''(''fixed number'') |parameters= *''number'': operand, which can be integer or fixed point, depending on function. |return=The square root. |notes=Be careful that '''Sqrt''' only operates and returns integers, and the result is rounded ''down''. For a negative operand, it will return 0 and beep an error. If you need decimal precision, use...")
- 15:27, 9 May 2026 SinglePlayer (hist | edit) [184 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns 1 if game type is single player. |usage=''Boolean'' '''SinglePlayer'''() |return='''TRUE''' if single-player, '''FALSE''' otherwise |id=ACS internal}}")
- 15:25, 9 May 2026 Sin (hist | edit) [303 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Computes the sine of an angle. |usage=''fixed'' '''Sin'''(''fixed angle'') |parameters= *''angle'': fixed point angle |return=Sine of given angle. |notes=This is the classic Doom approximate sine, so expect similar artifacts when aiming for exact angles. |id=ACS internal}}")
- 15:22, 9 May 2026 SetActorState (hist | edit) [1,259 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Change the current frame of tagged things. |usage=''int'' '''SetActorState'''(''int tid'', ''str state'', ''int exact'') |parameters= *''tid'': TID of affected things *''state'': name of state. Allows Decorate-style state names. See notes. *''exact'': if 0, it allows truncation if composed of multiple dot-separated words. If 1, it must match. |return=The number of actors whose states changed |notes=The state name doesn't need to be...")
- 14:39, 9 May 2026 SetThingSpecial (hist | edit) [447 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Sets the parameterized special and args of tagged things. |usage=''void'' '''SetThingSpecial'''(''int tid'', ''int special'', ''int arg1'', ''int arg2'', ''int arg3'', ''int arg4'', ''int arg5) |parameters= *''tid'': TID of things to change *''special'': action special to set on tagged things *''arg1'' to ''arg5'': arguments to set for the parameterized special |id=ACS internal}}")
- 14:27, 9 May 2026 SetGravity (hist | edit) [326 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes the level's gravity. |usage=''void'' '''SetGravity'''(''fixed value'') |parameters= *''value'': gravity amount. The normal Doom gravity is scaled at 800.0. |notes=The "800.0" default gravity is scaled like in the Quake game. |id=ACS internal |seealso= *SetAirControl *SetAirFriction}}")
- 14:18, 9 May 2026 GetActorCeilingZ (hist | edit) [478 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Gets an actor's ceiling or floor touch height. |usage= ''fixed'' '''GetActorCeilingZ'''(''int tid'') ''fixed'' '''GetActorFloorZ'''(''int tid'') |parameters= *''tid'': TID of actor |return= The Z height of the floor or ceiling where the actor would touch the given surface, in fixed point. |notes=This is slope-aware, and the touch height may be caused by another sector, not necessarily the one in the middle of the hitbox. |id=ACS internal}}")
- 13:53, 9 May 2026 SetPolyobjXY (hist | edit) [406 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Instantly moves a polyobject to given coordinates. |usage=''void'' '''SetPolyobjXY'''(''int po'', ''fixed x'', ''fixed y'') |parameters= *''po'': polyobject to move *''x'', ''y'': fixed point coordinates |notes= This function moves the polyobject instantly, teleporting it. The origin of the polyobject is the spawn point. |id=-303 |seealso= *GetPolyobjX *Polyobj_MoveTo}}")
- 15:10, 5 May 2026 SetActorPitch (hist | edit) [451 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes a player actor's view pitch (angle of looking up or down). |usage=''void'' '''SetActorPitch'''(''int tid'', ''fixed angle'') |parameters= *''tid'': TID of actor to affect *''angle'': fixed point angle of pitch |notes=This only works on players, as they're the only ones with distinct view pitch. Monsters only have their yaw angle defined. |id=ACS internal |seealso= *GetActorPitch}}")
- 14:46, 5 May 2026 SetActorAngle (hist | edit) [329 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|Sets tagged actors' direction angle. |usage=''void'' '''SetActorAngle'''(''int tid'', ''fixed angle'') |parameters= *''tid'': TID of one or more actors to affect *''angle'': fixed point angle to set |id=ACS internal |seealso= *Face code pointer *Turn code pointer}}")
- 14:20, 5 May 2026 SetLineTexture (hist | edit) [512 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes textures of tagged lines. |usage=''void'' '''SetLineTexture'''(''int tag'', ''int side'', ''int pos'', ''str texture'') |parameters= *''tag'': tag of lines to affect *''side'': which side of tagged lines to affect. Can be '''SIDE_FRONT''' (0) or '''SIDE_BACK''' (1) *''pos'': which part of sides to affect. Can be '''TEXTURE_TOP''' (0), '''TEXTURE_MIDDLE''' (1) or '''TEXTURE_BOTTOM''' (2) *''texture'': name of texture to apply |id=ACS inte...")
- 15:26, 4 May 2026 SetLineBlocking (hist | edit) [1,027 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes one or more lines' blocking properties by one of the given presets. |usage=''void'' '''SetLineBlocking'''(''int'' ''tag'', ''int'' ''block'') |parameters= *''tag'': tag of linedefs to affect. If 0, change the activating line. *''block'': one of the following options: :*'''BLOCK_NOTHING''' or 0: remove all involved blocking flags (see below); :*'''BLOCK_CREATURES''' or 1: sets the classic '''blocking''' ("impassable") flag, which blocks a...")
- 01:56, 4 May 2026 ReplaceTextures (hist | edit) [863 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Replaces all occurrences of a texture with another. |usage=''void'' '''ReplaceTextures'''(''str'' ''oldTexture'', ''str'' ''newTexture''[, ''int'' ''flags'']) |parameters= *''oldTexture'': name of texture to replace *''newTexture'': name of replacement texture *''flags'': optional sum of flags to filter the replacement (default of 0 is to replace any texture named ''oldTexture''): :*'''NOT_BOTTOM''' (1): do not replace any side lower texture :*'...")
- 15:20, 3 May 2026 Random (hist | edit) [315 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns a random number from a range. |usage=''int'' '''Random'''(''int'' ''min'', ''int'' ''max'') |parameters= *''min'': minimum value *''max'': maximum value |return=the random number in the range |notes=This is from the inclusive range between minimum and maximum. |id=(ACS internal)}}")
- 15:02, 3 May 2026 PlayerNumber (hist | edit) [365 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the index of the player activator. |usage=''int'' '''PlayerNumber'''() |return=The 0-based index of the player activator, or -1 if the activator is not a player. |notes=Be careful that the index is zero based, so player 1 gets number 0, player 2 gets 1 etc. If activator isn't a player, the return value is -1. |id=(ACS internal)}}")
- 14:58, 3 May 2026 PlayerCount (hist | edit) [155 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the number of players in the game. |usage=''int'' '''PlayerCount'''() |return=The number of players. |id=(ACS internal)}}")
- 14:46, 3 May 2026 VectorLength (hist | edit) [423 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the length (absolute value) of a two-dimensional vector. |usage=''fixed'' '''VectorLength'''(''fixed'' ''x'', ''fixed'' ''y'') |parameters= *''x'', ''y'': vector components (typically distances along the X and Y axes) |return= The length of the vector. |notes=This returns the exact length of the line, without using coarse approximations like it happens elsewhere in the engine. |id=-50}}")
- 14:42, 3 May 2026 GetWeapon (hist | edit) [332 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the name of the weapon wielded by the player activator. |usage=''str'' '''GetWeapon'''() |return=Returns the name (as defined in EDF) of the weapon used by player. |notes=This function has no TID support, so it can only be used by a player activator. |id=-69}}")
- 14:35, 3 May 2026 GetActorX (hist | edit) [383 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the given x, y or z coordinate of the tagged actor. |usage= ''fixed'' '''GetActorX'''(''int'' ''tid'') ''fixed'' '''GetActorY'''(''int'' ''tid'') ''fixed'' '''GetActorZ'''(''int'' ''tid'') |parameters= *''tid'': TID of tagged actor |notes=This returns the absolute coordinates, without taking into account portal shifting. |id=(ACS internal)}}")
- 14:28, 3 May 2026 GetActorPitch (hist | edit) [506 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns a tagged actor's view pitch. |usage=''fixed'' '''GetActorPitch'''(''int'' ''tid'') |parameters= *''tid'': TID of actor to check. |return=''angle'': fixed point angle of view pitch. |notes=Currently this only works with players, so the only useful TID values are 0 for the activator, or -1 to -4 to select a given player. The pitch is determined by the looking angle when free-look is enabled. |id=(ACS internal)}}")
- 14:22, 3 May 2026 GetActorLightLevel (hist | edit) [462 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Returns the light level of the sector containing the tagged actor. |usage=''int'' '''GetActorLightLevel'''(''int'' ''tid'') |parameters= *''tid'': TID of actor to check. |return=The light level of the sector containing the tagged actor. If no actor has the given TID, returns 0. |notes=This returns the light level on the sector, without taking into account the possible Boom different floor and ceiling lights. |id=(ACS internal)}}")
- 01:51, 23 April 2026 CheckSight (hist | edit) [588 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Checks if there is a line of sight between two actors. |usage=''boolean'' '''CheckSight'''(''int'' ''tid1'', ''int'' ''tid2'', ''flags'') |parameters= *''tid1'': TID of first actor *''tid2'': TID of second actor *''flags'': reserved, must be 0}}")
- 15:08, 4 April 2026 Scroll Floor (hist | edit) [1,394 bytes] Printz (talk | contribs) (Created page with "{{LineSpecial|description=This is the parameterized scrolling special for the floor. |usage='''Scroll_Floor'''(''tag'', ''flags'', ''type'', ''x'', ''y'') |parameters= *''tag'': tag of sectors whose floors to scroll; *''flags'': zero or a sum of the following values: :*1: set displacement scrolling :*2: set accelerative scrolling. This overrides displacement scrolling if both flags are set. :*4: use linedef vector to direct the scrolling (scrolling will happen wh...")
- 07:25, 4 April 2026 SetWeapon (hist | edit) [998 bytes] Printz (talk | contribs) (Created page with "{{ACSFunction|description=Changes activator's current weapon. |usage=''boolean'' '''SetWeapon'''(''str weapon'') |parameters= *''weapon'': name of weapon to switch to. This name is one defined by an EDF weaponinfo block, which for the base games is stored in '''player.edf'''. |return='''TRUE''' if the weapon was successfully selected or was already active, '''FALSE''' otherwise. |examples= <code>int result = SetWeapon("Crossbow"); // will return TRUE if player...")
- 14:16, 28 February 2026 Polyobj MoveTo (hist | edit) [581 bytes] Printz (talk | contribs) (Created page with "{{template:LineSpecial|description=Moves a polyobject to given coordinates. |usage='''Polyobj_MoveTo(''po'', ''speed'', ''x'', ''y'') |parameters= *''po'': polyobject ID to move *''speed'': movement speed in eighths of unit per tic *''x'', ''y'': coordinates, in integer map units |examples= '''Polyobj_MoveTo(1, 8, -1024, 4192) |notes=This linedef special moves the targeted polyobject to a given location in coordinates, instead of using a map spot thing. Be careful, if in...")