tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
What code do I need to copy from where to add units from a mod(burton from Contra)
Sponsor
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
14 years ago
The same codes that adds that unit to that game provided by that mod.
UserPostedImage 
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
From which file?
NewNightmare
14 years ago
for gods sake stop demanding, in each an every post you make there's a request, not even a damn question. Look at the files they have given and make some deduction. Burton? hmm hes american, and he's infantry, so it's quite possible it's AmericaInfantry.ini, or alternatively file that has 'Laser' 'Superweapon' or 'Airforce' in the name if the unit is general exclusive.
This game's structure is really plane and simple, and the code can be extracted very easily.
To add the full unit, you need the main unit code, commandbutton code, any upgrades code (indicated by modules in the main code) if applicable, buttons to those upgrades if not in game already, weapon code, any special power if applicable (indicated by modules in the main code), any additional OCL effects which can be indicated by either main code or weapon code, which can then refer to additional units (meaning more code), FX (in FXlist.ini) or sounds (soundeffects.ini + sound file),
You need the model/animation files, and textures on top of them, if any new has been added. The main unit code will refer to most of the additional stuff. find it, look through it,
to find the appropriate commandbutton just copy the unit's name and use search in the commandbutton.ini to find the button that creates that unit.
upgrade, special power, buttons to special powers and upgrades all can be found similarly, copy the name,look in appropriate file.
depending on how complicated the unit is, more code in more files will have to be found.
considering Burton has a knife attack and 3 TNT powers (timed, remote, detonate) it will have a lot of code. so sir, have just challenged your patience and search skills.
acidbrain
14 years ago
A couple of guys made a wonderfull searchengine by the way....
It's called GOOGLE, use it before you start asking stuff thats already been chewed out on multiple sites.
😁
Panem et kirkinses
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago

for gods sake stop demanding, in each an every post you make there's a request, not even a damn question. Look at the files they have given and make some deduction. Burton? hmm hes american, and he's infantry, so it's quite possible it's AmericaInfantry.ini, or alternatively file that has 'Laser' 'Superweapon' or 'Airforce' in the name if the unit is general exclusive.
This game's structure is really plane and simple, and the code can be extracted very easily.
To add the full unit, you need the main unit code, commandbutton code, any upgrades code (indicated by modules in the main code) if applicable, buttons to those upgrades if not in game already, weapon code, any special power if applicable (indicated by modules in the main code), any additional OCL effects which can be indicated by either main code or weapon code, which can then refer to additional units (meaning more code), FX (in FXlist.ini) or sounds (soundeffects.ini + sound file),
You need the model/animation files, and textures on top of them, if any new has been added. The main unit code will refer to most of the additional stuff. find it, look through it,
to find the appropriate commandbutton just copy the unit's name and use search in the commandbutton.ini to find the button that creates that unit.
upgrade, special power, buttons to special powers and upgrades all can be found similarly, copy the name,look in appropriate file.
depending on how complicated the unit is, more code in more files will have to be found.
considering Burton has a knife attack and 3 TNT powers (timed, remote, detonate) it will have a lot of code. so sir, have just challenged your patience and search skills.

newnightmare wrote:


Okay thanks.... But that's a but harsh, don't you think. You could have just asked- to me they are questions,

An I've tried google- believe me.

Okay, I've made some progress. I want the emp remote charge ability off him. I've got the button working, but it place normal charges instead of emp ones and the buildings aren't disabled when it I placed. Does anyor know what to do to change this? If anyone can help me with this I would greatly appreciate it. Many thanks.
acidbrain
14 years ago
You have to change the weapon that is used by the charge with your new emp weapon, the charge can be found in Weaponobject.ini(RemoteC4Charge or TimedC4Charge), the weapon in Weapon.ini(BurtonC4ChargeWeapon).
Panem et kirkinses
NewNightmare
14 years ago
my asumption is that all you have to do is find the weaponobject of the c4, and the one from emp patriot weapon, and copy the fireweaponwhendeadbehavior from patriot to c4. so when the charge explodes the emp fx will trigger
acidbrain
14 years ago

my asumption is that all you have to do is find the weaponobject of the c4, and the one from emp patriot weapon, and copy the fireweaponwhendeadbehavior from patriot to c4. so when the charge explodes the emp fx will trigger

newnightmare wrote:


Yip you´re right, but i didn´t want to chew it out totally for him so he could discover it himself...😛
Panem et kirkinses
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Thanks a lot guys!;)) I did this, but while it exploded in a blue flash- it didn't disable it. So I played with the object creation list and it worked. how can I make it disable the building it's planted to(like the one in contra)


EDIT: Wooh! I did it! Next up- A10 caller;)