not being able to replace fist

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom 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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
memredi
Posts: 58
Joined: Thu Jan 31, 2019 5:18 pm
Location: Galactic Khaghanate

not being able to replace fist

Post by memredi »

despite the fact that i have put "replaces fist" thing, i somehow cannot get the doom fist replaced with the mod's fist. Why?

thank
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: not being able to replace fist

Post by Void Weaver »

Is your new fist have Weapon.SlotNumber (and Weapon.SlotPriority) property?
If it haven't then try to add it there.
User avatar
Xim
Posts: 2085
Joined: Fri Feb 20, 2009 2:46 pm
Location: somewhere with trees

Re: not being able to replace fist

Post by Xim »

You might also need to make a new player class that starts with your new weapons instead of the old ones, then set it as the main class in MAPINFO.
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: not being able to replace fist

Post by Void Weaver »

It's redundant in case if you have defined appropriate weapon slot number.
User avatar
memredi
Posts: 58
Joined: Thu Jan 31, 2019 5:18 pm
Location: Galactic Khaghanate

Re: not being able to replace fist

Post by memredi »

it just keeps on not replacing altho defining the slot number
User avatar
memredi
Posts: 58
Joined: Thu Jan 31, 2019 5:18 pm
Location: Galactic Khaghanate

Re: not being able to replace fist

Post by memredi »

Spoiler:
Jarewill
 
 
Posts: 1759
Joined: Sun Jul 21, 2019 8:54 am

Re: not being able to replace fist

Post by Jarewill »

Replaces only works on spawned items.
Replacing chaingun with a modded one, will make the modded one spawn, but the chaingun can still be given with a command.
All spawned fists will be replaced with the modded one, but the player class has set to spawn with the vanilla one.
You need to make a new class like Xim said.
Post Reply

Return to “Scripting”