Heretic Max Ammo

Discuss all aspects related to modding Zandronum here.
User avatar
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

RE: Heretic Max Ammo

#21

Post by SwordGrunt » Mon Jan 04, 2016 7:00 pm

Yeah, actor replacing only affects spawning - you can replace monsters entirely since the only way they exist is being spawned in a level, though their definitions will still exist in the game (for purposes of inheritance). However, inventory items can never be entirely replaced, since if you use the console to obtain them directly they're not spawned and therefore not replaced.

omyv
New User
Posts: 9
Joined: Thu Dec 31, 2015 2:39 pm

RE: Heretic Max Ammo

#22

Post by omyv » Mon Jan 04, 2016 7:39 pm

So, there is no other way to remove the "old" weapon?

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Heretic Max Ammo

#23

Post by Klofkac » Mon Jan 04, 2016 7:42 pm

Well, if you want to cheat, then you can just use the command take PhoenixRod after the give weapons command. It will remove the "old" weapon from your inventory.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

omyv
New User
Posts: 9
Joined: Thu Dec 31, 2015 2:39 pm

RE: Heretic Max Ammo

#24

Post by omyv » Mon Jan 04, 2016 8:41 pm

Ok, thanks everyone for all your help anyway :)
I've never have imagined that change one number would be so complicated.

User avatar
Sean
IRC Operator
Posts: 983
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

RE: Heretic Max Ammo

#25

Post by Sean » Mon Jan 04, 2016 9:14 pm

Welcome to ZDoom modding :|
<capodecima> i dont say any more word without my loyer jenova

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

RE: Heretic Max Ammo

#26

Post by Empyre » Mon Jan 04, 2016 9:41 pm

I am not familiar enough with Heretic to know what weapon the player starts with. I only played the shareware version, way back in the 90s. To change what weapon the player starts with from the old one to the new one, you have to make a new player class in the way described earlier in this thread. Have the new class inherit from HereticPlayer and inside the definition, only list what you are changing, in this case, some Player.StartItem lines. Then make the new class be the only choice for the players by making a KEYCONF lump as somebody else described earlier.
You know, as long as you're going though all this trouble, you might as well change other things, too.
"For the world is hollow, and I have touched the sky."

User avatar
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

RE: Heretic Max Ammo

#27

Post by SwordGrunt » Tue Jan 05, 2016 12:36 am

Well that's only necessary if he wants to change the staff (fist) or wand (pistol), the starting weapons. The problem he had is he was using the give weapons console cheat which will give him every weapon available in Heretic, including any replaced ones - and that's something you can't change.



Well, you can. But redefining ZDoom actors is generally not good and most, if not all Heretic weapons have native functions which makes it even less advisable. Plus you'll have errors when loading the game, all that just to try to fix something caused by a cheat code. So don't do it.

Just as an example, heavy gameplay mods such as ZDoom Wars and Ghouls vs. Humans replace regular weapons with void actors that disappear instantly upon spawning. However, if you attempt to give yourself a SuperShotgun, it will still work just fine, and since it's something caused only by cheating you shouldn't make a big deal out of it.
Last edited by SwordGrunt on Tue Jan 05, 2016 12:39 am, edited 1 time in total.

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

RE: Heretic Max Ammo

#28

Post by Empyre » Tue Jan 05, 2016 5:48 am

I understand and agree.
"For the world is hollow, and I have touched the sky."

Arctangent
 
Posts: 82
Joined: Mon Nov 24, 2014 8:19 am

RE: Heretic Max Ammo

#29

Post by Arctangent » Tue Jan 05, 2016 7:07 am

That's one of the issues that comes up when setting the weapon's slot through the weapon itself; if you want to make sure a player doesn't get a weapon via give all, you have to remove that weapon's slot via overwriting it somehow. So you'll need to make a new player class for that purpose, since you can overwrite weapon slots through weapons.

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

RE: Heretic Max Ammo

#30

Post by Empyre » Tue Jan 05, 2016 11:33 am

In the player class definition (link in my post above), Player.WeaponSlot lines and be used to list what weapons the player can get. I used that in my opweapons_b6.pk3 (for Doom, not Heretic), and the cheat codes that give all weapons (idfa, idkfa, give weapons), give all of my weapons, but not also the standard ones. So, I was right about needing to make a player class after all, but for the wrong reason.
"For the world is hollow, and I have touched the sky."

Post Reply