demoedit question from a newbie - weapon swap?


Dark_Respite

 

Posted

Hey all, I have what might be a stupid question, but since I've never done anything with demos before today, I'm not sure how to figure this out. Is it possible to edit a demo to change the weapon a character is using to one which wouldn't normally be usable for that powerset?

Specifically, I'm trying to edit a demo of my beam rifle character shooting targets in the RWZ to have her using the mecha pistol instead of the mecha rifle, to investigate my conjecture that said pistol is actually big enough that it could fit as a sort of 'beam smg'.

I started by recording the demo and saving two versions of my costume file - one with the beam rifle and one with the appropriate pistol. Looking in the two costume files, I can see this difference - the beam rifle file has this code:

Code:
CostumePart ""
{
	Fx weapons/custom_beamrifle/fem_beamrifle_mecha_armor_01.fx
	Geometry none
	Texture1 !x_arifle_mecha_01
	Texture2 none
	DisplayName P3195014494
	RegionName Weapons
	BodySetName Weapons
	Color1  49,  65,  97
	Color2  255,  255,  255
	Color3  115,  115,  115
	Color4  227,  227,  227
}
while the pistol file has this code:

Code:
CostumePart ""
{
	Fx WEAPONS/Custom_Pistols/Fem_PistolRight_Mecha_Armor_01.fx
	Geometry none
	Texture1 none
	Texture2 none
	DisplayName P3962878527
	RegionName Weapons
	BodySetName Weapons
	Color1  49,  65,  97
	Color2  255,  255,  255
	Color3  115,  115,  115
	Color4  227,  227,  227
}
So I went into the demo file, found where it defined my costume, and replaced this line:

Code:
0   44  PARTSNAME none !X_ARifle_Mecha_01 none 00614131 00ffffff 00737373 00e3e3e3 WEAPONS/Custom_BeamRifle/Fem_BeamRifle_Mecha_Armor_01.fx
with this one:

Code:
0   44  PARTSNAME none none none 00614131 00ffffff 00737373 00e3e3e3 WEAPONS/Custom_Pistols/Fem_PistolRight_Mecha_Armor_01.fx
Unfortunately, it didn't work - in the demo, instead of drawing and shooting from either her original rifle or the pistol, she just had nothing in her hands, and the beam rifle fx originated from a point a couple feet to her right instead of from in front of her. So obviously, assuming it's possible at all, I didn't do it right. Is this something that's doable, and if so, what's the trick?


@MuonNeutrino
Student, Gamer, Altaholic, and future Astronomer.

This is what it means to be a tank!

 

Posted

Yes, it's doable - I'm at work, but when I get home, I'll want to take a closer look at this.

Michelle
aka
Samuraiko/Dark_Respite


Dark_Respite's Farewell Video: "One Last Day"
THE COURSE OF SUPERHERO ROMANCE CONTINUES!
Book I: A Tale of Nerd Flirting! ~*~ Book II: Courtship and Crime Fighting - Chap Nine live!
MA Arcs - 3430: Hell Hath No Fury / 3515: Positron Gets Some / 6600: Dyne of the Times / 351572: For All the Wrong Reasons
378944: Too Clever by Half / 459581: Kill or Cure / 551680: Clerical Errors (NEW!)