Feature #2375
Doomsday Script enhancements for 2.3
Description
- App.getInteger()
- App.setInteger()
- App.NETGAME and other constants equivalent to the DD_* value enums in dd_share.h
- App.Player.giveAmmo()
- App.Player.giveArmor()
- App.Player.giveBackpack()
- App.Player.givePower()
- App.Player.setLocalQuake()
- App.Player.shotAmmo()
- Defs.getStateNum()
- Defs.getThingNum()
- Game.rules()
- Math.cos()
- Math.sin()
- Math.tan()
- Math.randNum()
- World.findThings()
- World.listThings()
- World.spawnThing()
- World.Thing.addMom()
- World.Thing.changeFlags()
- World.Thing.dropItem()
- World.Thing.flags()
- World.Thing.height()
- World.Thing.info()
- World.Thing.mom()
- World.Thing.pos()
- World.Thing.setNoBlocking()
- World.Thing.setState()
- World.Thing.state()
- World.Thing.type()
- App.Player.setFlameCount()
- Audio.defineAmbientSfx()
- Audio.setAmbientSequence()
Related issues
Associated revisions
Scripting: Added player methods
- App.Player.shotAmmo()
Heretic only:
- App.Player.setFlameCount(tics)
IssueID #2375
Scripting|All Games: Added App.Player.giveArmor()
IssueID #2375
Scripting|All Games: Querying the current game rules
IssueID #2375
Scripting: Access internal values (e.g., DD_NETGAME)
Added App.getInteger() and App.setInteger(), and constants for the value IDs. These are mostly useful for querying current engine state.
IssueID #2375
Scripting: Added givePower() and giveBackpack()
The App.Player class now has methods for giving power-ups, including the backpack.
IssueID #2375
Heretic|Scripting: Defining ambient sfx via scripts
Audio.setAmbientSequence() is the user-facing API that translates the argument list to afxcmds and numeric parameters.
Defs.getSoundNum() was added because sounds aren't kept in a DEDRegister yet.
IssueID #2375
Scripting: Added Player.setHealth()
Method for changing player health without limitations.
IssueID #2375
Scripting: Added Player.giveAmmo()
IssueID #2375
Scripting|Heretic|Hexen: Added binding for P_SeekerMissile
IssueID #2375
Scripting|World: Listing things; changing thing state
IssueID #2375
Scripting: Added World.Thing.target()
IssueID #2375
Scripting: Added World.Thing.tracer()
IssueID #2375
History
#1
Updated by skyjake about 5 years ago
- Related to Feature #2374: "On death" script to run when a thing is killed added
#2
Updated by skyjake about 5 years ago
- Description updated (diff)
- % Done changed from 20 to 30
#3
Updated by skyjake about 5 years ago
- Description updated (diff)
#4
Updated by skyjake almost 5 years ago
- Description updated (diff)
#5
Updated by skyjake almost 5 years ago
- Related to Feature #2418: Earthquake action for Heretic added
#6
Updated by skyjake almost 5 years ago
- Description updated (diff)
- % Done changed from 30 to 40
#7
Updated by skyjake over 4 years ago
- Description updated (diff)
#8
Updated by skyjake over 4 years ago
- Description updated (diff)
- % Done changed from 40 to 60
#9
Updated by skyjake over 4 years ago
- Description updated (diff)
- Status changed from In Progress to Resolved
- % Done changed from 60 to 100
#10
Updated by skyjake over 4 years ago
- Description updated (diff)
#11
Updated by skyjake over 4 years ago
- Description updated (diff)
#12
Updated by skyjake about 4 years ago
- Description updated (diff)
#13
Updated by skyjake about 4 years ago
- Status changed from Resolved to Closed
Scripting|World: Querying and changing thing flags
IssueID #2375