Page 1 of 1

How can I start with a shotgun?

Posted: Sat May 22, 2021 3:00 pm
by yum13241
Self explanatory. I don't care if I have to load Yet Another PK3 or WAD, I want to be able to start with a shotgun. If it's a CVAR, great! If not, that's fine.

Re: How can I start with a shotgun?

Posted: Sat May 22, 2021 3:15 pm
by Jarewill
I don't know of any CVar that does that.

However that's a very easy mod to make with various methods to do it.
You could either redefine the player class to start with a shotgun, create an ENTER ACS script to give the player the shotgun or use a ZScript event handler.

I used the event handler method to spawn a shotgun at the player's location.
Spawning it at the player's location means that gameplay mods will also work with this small mod.
I also added an option to the menu that will make the player instantly start with a shotgun, so they won't have to move a step to get it. That however doesn't work with gameplay mods.

Re: How can I start with a shotgun?

Posted: Sat May 22, 2021 3:28 pm
by yum13241
Jarewill wrote:I don't know of any CVar that does that.

However that's a very easy mod to make with various methods to do it.
You could either redefine the player class to start with a shotgun, create an ENTER ACS script to give the player the shotgun or use a ZScript event handler.

I used the event handler method to spawn a shotgun at the player's location.
Spawning it at the player's location means that gameplay mods will also work with this small mod.
I also added an option to the menu that will make the player instantly start with a shotgun, so they won't have to move a step to get it. That however doesn't work with gameplay mods.

I'll test it when I'm back at my pc.

Re: How can I start with a shotgun?

Posted: Sat May 22, 2021 4:31 pm
by yum13241
Jarewill wrote:I don't know of any CVar that does that.

However that's a very easy mod to make with various methods to do it.
You could either redefine the player class to start with a shotgun, create an ENTER ACS script to give the player the shotgun or use a ZScript event handler.

I used the event handler method to spawn a shotgun at the player's location.
Spawning it at the player's location means that gameplay mods will also work with this small mod.
I also added an option to the menu that will make the player instantly start with a shotgun, so they won't have to move a step to get it. That however doesn't work with gameplay mods.

This works! Thanks!