Jump to content

Xcom Enemy Within Weapon resizing through XComGame.upk


justinas91

Recommended Posts

I am trying to resize the ingame weapons to be more realistic (xcom enemy within)

I have searched the forums and found that there was a mod to increase female weapons and reduce male weapons at the same time here http://forums.nexusmods.com/index.php?/topic/1499688-big-guns-for-girls/

 

The problem is its for enemy unknown and does not work for me because the hex code is different in enemy within

then i tryed to create a patcher gui using the code from (long war xcomgame.upk) mixing it with the code i found

UPK_FILE=XComGame.upk
OBJECT=XComUnitPawn.AttachItem

//slightly scale down ridiculously large weapons on male pawns

[BEFORE_HEX]
//if(bIsFemale && !AllObjects('XComMecPawn'))
07 C9 00 82 2D 01 26 3D 00 00 18 0E 00 81 C5 21 C0 7F 00 00 00 00 00 00 16 16 16 

//MeshComp.SetScale(0.80)
19 00 46 3E 00 00 0F 00 00 00 00 00 00 1B FE 6D 00 00 00 00 00 00 1E CD CC 4C 3F 16 

//Mesh.AttachComponentToSocket(MeshComp, SocketName)
19 01 4C FD FF FF 1C 00 00 00 00 00 00 1C 72 FA FF FF 00 46 3E 00 00 00 49 3E 00 00 16 

//kFoundMeshComponent = MeshComp
0F 48 47 3E 00 00 00 46 3E 00 00 

//MeshComp.SetLightEnvironment(LightEnvironment)
19 00 46 3E 00 00 13 00 00 00 00 00 00 1C A8 FA FF FF 01 36 3D 00 00 16 

//MeshComp.SetShadowParent(Mesh)
19 00 46 3E 00 00 13 00 00 00 00 00 00 1C 9F FA FF FF 01 4C FD FF FF 16 

//MeshComp.CastShadow = false
14 19 00 46 3E 00 00 0A 00 F3 FE FF FF 00 2D 01 F3 FE FF FF 28 

//MeshComp.PrestreamTextures(1.0, true)
19 00 46 3E 00 00 11 00 00 00 00 00 00 1C 86 FB FF FF 1E 00 00 80 3F 27 4A 16 

//0b
[/BEFORE_HEX]


[AFTER_HEX]
//start 0x86
//if(!AllObjects('XComMecPawn'))
07 CE 00 81 C5 21 E3 80 00 00 00 00 00 00 16 16 

	//MeshComp.SetScale(((bIsFemale) ? 0.750 : 0.850))
	19 00 71 3E 00 00 18 00 00 00 00 00 00 1B EC 6E 00 00 00 00 00 00 45 2D 01 51 3D 00 00 05 00 1E 00 00 40 3F 05 00 1E 9A 99 59 3F 16 

	// null ops
	00 71 3E 00 00 00 71 3E 00 00 00 71 3E 00 00 0B

//Mesh.AttachComponentToSocket(MeshComp, SocketName)
19 01 4C FD FF FF 1C 00 00 00 00 00 00 1C 72 FA FF FF 00 46 3E 00 00 00 49 3E 00 00 16 

//kFoundMeshComponent = MeshComp
0F 48 47 3E 00 00 00 46 3E 00 00 

//MeshComp.SetLightEnvironment(LightEnvironment)
19 00 46 3E 00 00 13 00 00 00 00 00 00 1C A8 FA FF FF 01 36 3D 00 00 16 

//MeshComp.SetShadowParent(Mesh)
19 00 46 3E 00 00 13 00 00 00 00 00 00 1C 9F FA FF FF 01 4C FD FF FF 16 

//MeshComp.PrestreamTextures(1.0, true)
19 00 46 3E 00 00 11 00 00 00 00 00 00 1C 86 FB FF FF 1E 00 00 80 3F 27 4A 16 

//0b
[/AFTER_HEX] 

I almost got it working but it crashes as soon as a soldier model has to load

I am not good at this

 

Maybe can someone help me out or done this already?

Ty all

Link to comment
Share on other sites

  • 2 weeks later...
Actually the code there is for Enemy Within, and if you want female weapons increasing in size as well you should try my modified code. Though use the old code from DIY link "dubious" posted. The edited code in my post now is not tested. Well actually if you try that too and give feedback it would be good.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...