Heretic Max Ammo
- SwordGrunt
- Forum Regular
- Posts: 377
- Joined: Thu Jun 07, 2012 8:43 pm
RE: Heretic Max Ammo
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.
RE: Heretic Max Ammo
So, there is no other way to remove the "old" weapon?
RE: Heretic Max Ammo
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.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔
RE: Heretic Max Ammo
Ok, thanks everyone for all your help anyway :)
I've never have imagined that change one number would be so complicated.
I've never have imagined that change one number would be so complicated.
- 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
Welcome to ZDoom modding :|
<capodecima> i dont say any more word without my loyer jenova
RE: Heretic Max Ammo
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.
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."
- SwordGrunt
- Forum Regular
- Posts: 377
- Joined: Thu Jun 07, 2012 8:43 pm
RE: Heretic Max Ammo
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.
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.
-
Arctangent
- Posts: 82
- Joined: Mon Nov 24, 2014 8:19 am
RE: Heretic Max Ammo
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.
RE: Heretic Max Ammo
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."