Using stock decals and other general editing questions

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Using stock decals and other general editing questions

Postby Exosphere » Sat Nov 18, 2017 11:26 pm

As the title states, I have a few questions involving the decals and some other editing questions.

1. I have seen other people using the in-game DOOM decals for custom projectiles. I would be interested in finding out what they are, however, I can't seem to find what the other decals even are or where exactly they are located file-wise. The only one I know of is:
Code: Select allExpand view
DECAL Scorch

Anyone know anything else about this? (SOLVED)

2. I've noticed that when using a reload function, as soon as the magazine is empty, the firing sound will be immediately cut off and initiate the reloading. Is there anyway to have it so that the firing sound is able to play out in its entirity before reloading? Below is an example of the firing code and reload function for one of my weapons.
Code: Select allExpand view
Fire:
         CAR1 A 0 A_JumpIfInventory("CarbineMag", 50, "Full")
         CAR1 A 0 Bright A_PlaySound("weapons/cs_elite", CHAN_WEAPON)
         CAR1 A 1 Bright A_FireProjectile("Flechette", frandom(-2.4, 2.4), 1, 0, 0, 0, frandom(-2.4, 2.4))
         CAR1 A 1 Offset(0,5)
         CAR1 A 1 Offset(1,10)
         CAR1 A 0 Bright A_AlertMonsters
         CAR1 A 0 A_JumpIfNoAmmo("Reload")
         Goto Ready
Reload:
         TNT1 A 0 A_PlaySound("weapons/shotgr", CHAN_WEAPON, 100.0)
         CBST A 30 A_GiveInventory("CarbineMag", 50)
         TNT1 A 0 A_JumpIfInventory("CarbineMag",50,"Full")
         Goto Ready


3. I have seen other mods using particles for weapon muzzle "flash" and "smoke", such as in LegenDoom and Lithium. Any ways on how to implement a system like this? (Edit: This hasn't been solved. Marked it so by accident. Still looking for help with this one.)



Thanks for any help provided.

This might have questions added to it later.
Last edited by Exosphere on Wed Nov 22, 2017 10:52 pm, edited 4 times in total.
User avatar
Exosphere
 
Joined: 11 Jun 2017
Location: New England, US

Re: Using stock decals and other general editing questions

Postby Graf Zahl » Sun Nov 19, 2017 2:09 am

1. You can find all decal graphics in gzdoom.pk3/graphics.
2. Play the reloading sound on another channel. Since it plays on CHAN_WEAPON, just like the firing sound, it will cut that off. For a case like this where the sound may play parallel to other sounds, CHAN_AUTO is recommended.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Using stock decals and other general editing questions

Postby Exosphere » Sun Nov 19, 2017 3:29 pm

Graf Zahl wrote:1. You can find all decal graphics in gzdoom.pk3/graphics.
2. Play the reloading sound on another channel. Since it plays on CHAN_WEAPON, just like the firing sound, it will cut that off. For a case like this where the sound may play parallel to other sounds, CHAN_AUTO is recommended.

Thank you, these answered my questions!

Also, New question! (Not just meant for Graf)

4. I know this might be very simple to some, but how exactly to I change the jump height and movement speed of the player? I've tried messing around with the Speed, Player.ForwardMove, and Player.JumpZ ACTOR variables, however, I don't seem to notice any change to the player's movement or jump height. Is this not the proper method to changing these variables?
User avatar
Exosphere
 
Joined: 11 Jun 2017
Location: New England, US

Re: Using stock decals and other general editing questions

Postby Blue Shadow » Sun Nov 19, 2017 3:42 pm

Exosphere wrote:4. I know this might be very simple to some, but how exactly to I change the jump height and movement speed of the player? I've tried messing around with the Speed, Player.ForwardMove, and Player.JumpZ ACTOR variables, however, I don't seem to notice any change to the player's movement or jump height. Is this not the proper method to changing these variables?

Did you add your new player class?
https://zdoom.org/wiki/Creating_new_player_classes
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Using stock decals and other general editing questions

Postby Exosphere » Sun Nov 19, 2017 3:46 pm

Blue Shadow wrote:
Exosphere wrote:4. I know this might be very simple to some, but how exactly to I change the jump height and movement speed of the player? I've tried messing around with the Speed, Player.ForwardMove, and Player.JumpZ ACTOR variables, however, I don't seem to notice any change to the player's movement or jump height. Is this not the proper method to changing these variables?

Did you add your new player class?
https://zdoom.org/wiki/Creating_new_player_classes


Yup, one of the first things I made early on was a custom player class.
User avatar
Exosphere
 
Joined: 11 Jun 2017
Location: New England, US

Re: Using stock decals and other general editing questions

Postby Blue Shadow » Mon Nov 20, 2017 7:58 am

Do you have something we can test?
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Using stock decals and other general editing questions

Postby Exosphere » Tue Nov 21, 2017 8:45 am

Blue Shadow wrote:Do you have something we can test?


Sure, here is my custom player class. I set it up so that it is its own DECORATE file, and needs to be included in the universal DECORATE file. Also, the death animations might be alittle weird since I'm using the DOOM 64 player sprites (still need to fix those, the animations, though).

Code: Select allExpand view
ACTOR Hero : DoomPlayer
{
   Speed 1
   Player.MaxHealth 300
   Radius 16
   Height 64
   Mass 125
   DamageFactor "ExplsnImmunity", 0.0
   
   Player.DisplayName "TEST"
   
   Player.WeaponSlot 0, uMachete
   Player.WeaponSlot 1, tHandgun
   Player.WeaponSlot 2, OICW, Carbine
   Player.WeaponSlot 3, cmbtShotgun, IShtgn
   Player.WeaponSlot 4, Zevatron
   Player.WeaponSlot 5, slrNitro, Friendmaker
   Player.ForwardMove 50, 0.5
   Player.JumpZ 15
   
   CameraHeight 10
   
   States
   {
      Spawn:
         PLAY A -1
         Loop
      See:
         PLAY ABCD 4
         Loop
      Missile:
         PLAY E 12
         Goto Spawn
      Melee:
         PLAY F 6 BRIGHT
         Goto Missile
      Pain:
         PLAY G 4
         PLAY G 4 A_Pain
         Goto Spawn
      Death:
         PLAY H 0 A_PlayerSkinCheck("AltSkinDeath")
      Death1:
         PLAY H 10
         PLAY I 10 A_PlayerScream
         PLAY J 10 A_NoBlocking
         PLAY KLM 10
         PLAY M -1
         Stop
      XDeath:
         PLAY M 0 A_PlayerSkinCheck("AltSkinXDeath")
      XDeath1:
         PLAY O 5
         PLAY P 5 A_XScream
         PLAY Q 5 A_NoBlocking
         PLAY RSTUV 5
         PLAY W -1
         Stop
      AltSkinDeath:
         PLAY H 6
         PLAY I 6 A_PlayerScream
         PLAY JK 6
         PLAY L 6 A_NoBlocking
         PLAY MNO 6
         PLAY P -1
         Stop
      AltSkinXDeath:
         PLAY Q 5 A_PlayerScream
         PLAY R 0 A_NoBlocking
         PLAY R 5 A_SkullPop
         PLAY STUVWX 5
         PLAY Y -1
         Stop
   }
}





PS. Interesting new Editing layout. What prompted the forum reorganization?
User avatar
Exosphere
 
Joined: 11 Jun 2017
Location: New England, US

Re: Using stock decals and other general editing questions

Postby Rachael » Tue Nov 21, 2017 4:22 pm

Exosphere wrote:PS. Interesting new Editing layout. What prompted the forum reorganization?

Long story short: Over-clutter was leading to people being ignored.

viewtopic.php?f=48&t=58506
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Using stock decals and other general editing questions

Postby Blue Shadow » Tue Nov 21, 2017 6:36 pm

Exosphere wrote:Sure, here is my custom player class.

Something else must be at play here, because that code works as expected (I tested it).

Just out of curiosity, if you type playerclasses and press Enter in the console, what do you get?
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Using stock decals and other general editing questions

Postby Exosphere » Fri Nov 24, 2017 11:10 am

Blue Shadow wrote:
Exosphere wrote:Sure, here is my custom player class.

Something else must be at play here, because that code works as expected (I tested it).

Just out of curiosity, if you type playerclasses and press Enter in the console, what do you get?


So I figured out what was wrong. Apparently, I hadn't officially defined the player class within the MAPINFO file as described in the wiki; I didn't even have a MAPINFO file. Once I added the file and defined the class, it worked perfectlly. Thank you for catching this, Blue Shadow.

(This is for everyone, but would still like some help with creating a particle system for the muzzle flash.)
User avatar
Exosphere
 
Joined: 11 Jun 2017
Location: New England, US


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 0 guests