gametechmods

Robot Arena => General Support => Topic started by: helloface on October 13, 2013, 02:36:56 PM

Title: Modding armour in the CFZ
Post by: helloface on October 13, 2013, 02:36:56 PM
I downloaded notepad++, but it didn't work for me. I've also heard talk about a "decompiler".

How do I get into ra2.cfz?
Title: Re: Modding armour in the CFZ
Post by: Mr. AS on October 13, 2013, 02:50:15 PM
you have to decompile it with lu-tze's cfz compiler. drag a cfz into uncfl.exe and it should decompile.

https://gametechmods.com/forums/index.php?action=downloads;sa=view;down=90 (https://gametechmods.com/forums/index.php?action=downloads;sa=view;down=90)
Title: Re: Modding armour in the CFZ
Post by: helloface on October 13, 2013, 03:01:55 PM
Thanks! So I'm assuming...

Plastic
Plastic armor is very lightweight, but offers little protection from attack.
botlab\armor_plastic.tga
0 8 0 0 80
Title: Re: Modding armour in the CFZ
Post by: helloface on October 13, 2013, 03:25:07 PM
It works! Thanks AS
Title: Re: Modding armour in the CFZ
Post by: Galacticruler on December 17, 2013, 09:08:44 PM
0 8 0 0 80
wait, thats what those are?
Title: Re: Modding armour in the CFZ
Post by: helloface on December 17, 2013, 09:25:00 PM
I believe so.
Title: Re: Modding armour in the CFZ
Post by: Trovaner on December 18, 2013, 10:39:11 AM
0 8 0 0 80
wait, thats what those are?
The two random numbers are actually puncture and heat (I can't remember the order offhand but I have it written down in my notes somewhere if anyone is curious). Now before you get all exited, neither value is currently used by RA2. I've done extensive testing to see if it impacts any of the damage formulas and none of the references that I found are connected to running code. For this reason, it is preferred that you keep them set to 0 until a mod makes use of them. I actually started a mod last summer but I got too busy with the Bot Exchange so I put it on hold.
Title: Re: Modding armour in the CFZ
Post by: Galacticruler on December 18, 2013, 03:41:51 PM
Ah, thanks for clearing that up.