Replacing weapons in Strife

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Replacing weapons in Strife

Post by ChronoSeth »

I'm making a small, private (at least for now) mod for strife, and I'm trying to replace the crossbow with a slightly edited version. The problem is that when you are given a crossbow via a conversation, you receive the standard crossbow along with my edit. Suggestions?

Code: Select all

Actor NewElectricBolt : ElectricBolt Replaces ElectricBolt
{
	Speed 45
	Damage (random(1,3)*10)
	DamageType "Electric"
	+NODAMAGETHRUST
	+FORCEPAIN
	States
	{
		Death:
		ZAP1 A 3 A_AlertMonsters
		ZAP1 BCDEFE 3 A_Explode (1, 32, 0, 0, 32)
		ZAP1 DCB 2 A_Explode (1, 32, 0, 0, 32)
		ZAP1 A 1 A_Explode (1, 32, 0, 0, 32)
		Stop
	}
}

Actor NewPoisonBolt : PoisonBolt Replaces PoisonBolt
{
	Speed 45
}

Actor NewCrossbow : StrifeCrossbow Replaces StrifeCrossbow
{
	ConversationID 194
	Tag "Crossbow (Electric)"
	Weapon.SlotNumber 2
	Weapon.SisterWeapon "NewStrifeCrossbow2"
}

Actor NewStrifeCrossbow2 : StrifeCrossbow2 Replaces StrifeCrossbow2
{
	Tag "Crossbow (Poison)"
	Weapon.SlotNumber 2
	Weapon.SisterWeapon "StrifeCrossbow"
}
Edit: New problem; I've created actors to replace the acolytes which drop a random amount of gold when killed. However, they only drop a clip of bullets. Peasants with a similar modification work, but only if they aren't quest-related. Never mind, found a better-working method.
Last edited by ChronoSeth on Wed Mar 23, 2011 4:25 pm, edited 1 time in total.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Replacing weapons in Strife

Post by wildweasel »

To make weapons replace those given by conversations, they must occupy the same ConversationID as the original weapon.
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: Replacing weapons in Strife

Post by ChronoSeth »

The weapon does occupy the same ConversationID.
Wait... wtf... The assault gun works properly. The wiki and zdoom.pk3 both say that the crossbow's ConversationID is 194, and in your mod the shotgun's ConversationID is 194. :? Or am I somehow wrong?
Locked

Return to “Editing (Archive)”