Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All Games|libdoomsday: Notify about player weapon changes
Added Values that specify a text identifier for each player weapon. Expanded `G_Ticker` to perform "post-tick" for each player. This allows doing things like status cvar updates after the tick. Using the `Plug_Notify` mechanism, games will now inform the engine during post-tick when a player's current weapon changes. The notification includes the text identifier from Values. This identifier can then be used to look for relevant assets (for psprite 3D models).
- Loading branch information
Showing
12 changed files
with
202 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ Include "objects.ded"; | |
Include "sprites.ded"; | ||
Include "text.ded"; | ||
Include "sounds.ded"; | ||
Include "values.ded"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Heretic: Values | ||
# | ||
# The strings from all Values definition blocks are merged together. | ||
# This means you don't have to add all your values here; they can be | ||
# in a Values block in another file. | ||
|
||
Header { Version = 5; } | ||
|
||
Values { | ||
# Weapon Info|*|Static | ||
# Defaults to "0". "1" = prevent the lowering of the HUD weapon when doing a switch. | ||
|
||
Weapon Info { | ||
0 { | ||
Id = "staff"; | ||
Static = "0"; | ||
}; | ||
1 { | ||
Id = "goldwand"; | ||
Static = "0"; | ||
}; | ||
2 { | ||
Id = "crossbow"; | ||
Static = "0"; | ||
}; | ||
3 { | ||
Id = "blaster"; | ||
Static = "0"; | ||
}; | ||
4 { | ||
Id = "skullrod"; | ||
Static = "0"; | ||
}; | ||
5 { | ||
Id = "phoenix"; | ||
Static = "0"; | ||
}; | ||
6 { | ||
Id = "mace"; | ||
Static = "0"; | ||
}; | ||
7 { | ||
Id = "gauntlet"; | ||
Static = "0"; | ||
}; | ||
|
||
# As a Chicken, there is only the Beak weapon available. | ||
Beak { | ||
Id = "beak"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters