User Tools

Site Tools


script:module:app

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:app [2020-06-25 12:53]
skyjake [Functions]
script:module:app [2020-11-26 08:24]
skyjake
Line 18: Line 18:
  
 #​@Identifier_HTML~getInteger~@#​ ( #​@Identifier_HTML~getInteger~@#​ (
-  ​#​@Arg_HTML~Number,​id~@#​ )+ #​@Arg_HTML~Number,​id~@#​ )
   ​   ​
 Query the value of an internal engine variable. The //id// is one of the constants in the App module, such as ''​App.NETGAME''​. Query the value of an internal engine variable. The //id// is one of the constants in the App module, such as ''​App.NETGAME''​.
Line 62: Line 62:
  
 Returns the current armor type (0, 1, or 2) of the player. Returns the current armor type (0, 1, or 2) of the player.
 +
 +
 +#​@Identifier_HTML~giveAmmo~@#​ ( 
 + #​@Arg_HTML~Number,​type~@#,​
 + #​@Arg_HTML~Number,​amount~@#​ )
 +
 +Gives the player ammo of a given type. The //type// is one of the internal ammo type IDs defined in doomdef.h or h2def.h.
  
  
Line 69: Line 76:
  
 Increases the player'​s armor points and changes the armor type. Increases the player'​s armor points and changes the armor type.
 +
 +
 +#​@Identifier_HTML~giveBackpack~@#​ ( )
 +
 +(Availability:​ Not available in Hexen.)
 +
 +Increases the player'​s max ammo capacity.
 +
 +
 +#​@Identifier_HTML~givePower~@#​ (
 + #​@Arg_HTML~Number,​type~@#​ )
 +
 +Gives the player a power-up.
 +
 +The values for //type// depend on the game (see ''​enum powertype_t''​).
 +For Heretic, the following values are defined:
 +
 +  * App.Player.PT_ALLMAP
 +  * App.Player.PT_FLIGHT
 +  * App.Player.PT_HEALTH2
 +  * App.Player.PT_INFRARED
 +  * App.Player.PT_INVISIBILITY
 +  * App.Player.PT_INVULNERABILITY
 +  * App.Player.PT_SHIELD
 +  * App.Player.PT_WEAPONLEVEL2
  
  
Line 108: Line 140:
  
 To stop the earthquake, set //​intensity//​ to zero. To stop the earthquake, set //​intensity//​ to zero.
 +
 +
 +#​@Identifier_HTML~setHealth~@#​ ( 
 + #​@Arg_HTML~Number,​hp~@#​ )
 +
 +Changes player health to //hp// without checking restrictions. The value can be set to any number, even higher than the defined player maximum health. Setting //hp// to zero or a negative value kills the player, even if they have invulnerability.
 +
  
 #​@Identifier_HTML~shotAmmo~@#​ ( ) #​@Identifier_HTML~shotAmmo~@#​ ( )
script/module/app.txt ยท Last modified: 2020-11-26 08:24 by skyjake