Vermil
Senior Member
Posts: 1471
Registered: 03-04 |
Reinchard666 said:
AzureAgony make code for new pistol animation, so here is tech-demo (only for zDoom based ports, jDoom version in future I hope)
1. Open JDoom.pk3 and then look for objects.ded in 'Defs/JDoom'.
2. Do a search for 'pistol', copy the states into a text file, modify them and/or add as many you wish and then save as blah.ded.
3. Load in Dday like you do a pwad or PK3.
Heres the first state for the pistol, as a reference.
State {
ID = "PISTOL";
Sprite = "PISG";
Frame = 0;
Tics = 1;
Action = "A_WeaponReady";
Next state = "PISTOL";
}
To load the sprites; while Dday supports PNG files inside a wad, it doesn't support HIRESTEX.
Instead you stick the hi-res sprites in 'Data/JDoom/Patches' (within a PK3 ideally; the ded can also go in there in 'Defs/JDoom/Auto'), with the name of the in wad sprite they are replacing and Dday will auto scale them to the size the original sprite.
Last edited by Vermil on 10-24-12 at 22:07
|