Project

General

Profile

Feature #2375

Doomsday Script enhancements for 2.3

Added by skyjake over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Enhancement
Target version:
Start date:
2019-12-22
% Done:

100%

Tags:

Description

The following Doomsday Script bindings, classes, and functions have been added:
  • 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()
Heretic only:
  • App.Player.setFlameCount()
  • Audio.defineAmbientSfx()
  • Audio.setAmbientSequence()

Related issues

Related to Feature #2374: "On death" script to run when a thing is killedClosed2019-12-21

Related to Feature #2418: Earthquake action for HereticClosed2020-03-14

Associated revisions

Revision e1e8d5ba (diff)
Added by skyjake about 4 years ago

Scripting|World: Querying and changing thing flags

IssueID #2375

Revision 22aa6a9e (diff)
Added by skyjake about 4 years ago

Scripting: Added player methods

- App.Player.shotAmmo()

Heretic only:
- App.Player.setFlameCount(tics)

IssueID #2375

Revision 003f74eb (diff)
Added by skyjake about 4 years ago

Scripting|All Games: Added App.Player.giveArmor()

IssueID #2375

Revision 1cf8a07a (diff)
Added by skyjake almost 4 years ago

Scripting|All Games: Querying the current game rules

IssueID #2375

Revision f9f85da5 (diff)
Added by skyjake almost 4 years ago

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

Revision 023ca1a4 (diff)
Added by skyjake over 3 years ago

Scripting: Added givePower() and giveBackpack()

The App.Player class now has methods for giving power-ups, including the backpack.

IssueID #2375

Revision 103dd7e1 (diff)
Added by skyjake over 3 years ago

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

Revision 57ae720c (diff)
Added by skyjake over 3 years ago

Scripting: Added Player.setHealth()

Method for changing player health without limitations.

IssueID #2375

Revision c4641e08 (diff)
Added by skyjake over 3 years ago

Scripting: Added Player.giveAmmo()

IssueID #2375

Revision 3c165044 (diff)
Added by skyjake over 3 years ago

Scripting|Heretic|Hexen: Added binding for P_SeekerMissile

IssueID #2375

Revision c26a678a (diff)
Added by skyjake over 3 years ago

Scripting|World: Listing things; changing thing state

IssueID #2375

Revision 417f697f (diff)
Added by skyjake over 3 years ago

Scripting: Added World.Thing.target()

IssueID #2375

Revision 9ef43a74 (diff)
Added by skyjake over 3 years ago

Scripting: Added World.Thing.tracer()

IssueID #2375

History

#1 Updated by skyjake over 4 years ago

  • Related to Feature #2374: "On death" script to run when a thing is killed added

#2 Updated by skyjake about 4 years ago

  • Description updated (diff)
  • % Done changed from 20 to 30

#3 Updated by skyjake about 4 years ago

  • Description updated (diff)

#4 Updated by skyjake about 4 years ago

  • Description updated (diff)

#5 Updated by skyjake about 4 years ago

#6 Updated by skyjake about 4 years ago

  • Description updated (diff)
  • % Done changed from 30 to 40

#7 Updated by skyjake almost 4 years ago

  • Description updated (diff)

#8 Updated by skyjake almost 4 years ago

  • Description updated (diff)
  • % Done changed from 40 to 60

#9 Updated by skyjake over 3 years ago

  • Description updated (diff)
  • Status changed from In Progress to Resolved
  • % Done changed from 60 to 100

#10 Updated by skyjake over 3 years ago

  • Description updated (diff)

#11 Updated by skyjake over 3 years ago

  • Description updated (diff)

#12 Updated by skyjake over 3 years ago

  • Description updated (diff)

#13 Updated by skyjake over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF