EDF player reference: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
m (→Player skin: italic -> quotes) |
(→Player class: Added info about redefining class) |
||
Line 22: | Line 22: | ||
} | } | ||
By default, under the base folder, in the root player.edf, there are two classes defined: DoomMarine (only if game is Doom) and Corvus (only if game is Heretic). | By default, under the base folder, in the root player.edf, there are two classes defined: DoomMarine (only if game is Doom) and Corvus (only if game is Heretic). Any of these classes may be redefined in mods, there's no need for a delta structure. So if you want to change the player speed and initial health, you can do so in mods by redefining game's default class. | ||
== Player skin == | == Player skin == |
Revision as of 15:05, 1 August 2017
Player class
playerclass name { defaultskin name thingtype name altattackstate name initialhealth number // default: 100 speedwalk number // default: 25 speedrun number // default: 50 speedstrafe number // default: 24 speedstraferun number // default: 40 speedturn number // default: 640 speedturnfast number // default: 1280 speedturnslow number // default: 320 speedlookslow number // default: 450 speedlookfast number // default: 512 default boolean // default: false rebornitem name, amount }
By default, under the base folder, in the root player.edf, there are two classes defined: DoomMarine (only if game is Doom) and Corvus (only if game is Heretic). Any of these classes may be redefined in mods, there's no need for a delta structure. So if you want to change the player speed and initial health, you can do so in mods by redefining game's default class.
Player skin
skin name { sprite name // default: PLAY faces prefix // default: STF sounds { pain name // default: plpain diehi name // default: pdiehi oof name // default: oof gib name // default: slop punch name // default: punch radio name // default: radio die name // default: pldeth fall name // default: plfall feet name // default: plfeet fallhit name // default: fallht plwdth name // default: plwdth noway name // default: noway } }
Any skin you define will appear in the menu in the "Player Setup" section as an option.
The default skins are "marine" for Doom and "corvus" for Heretic. You can redefine your own "marine" or "corvus" skin in your mod's EDF and it will replace the default player skin. Do this if you want to change the sprite and sound of the protagonist.