I fixed it.
For some stupid reason, command & conquer does not like when I edit the map.ini using notepad, everytime I use notepad to change a bit of code like the damage of a weapon the map.ini stops working and it will always make the game crash even if I remove most of the code.
Fortunately, I always have a working backup of the map.ini.
So I used notpad+ to change the exact same code I did before with notepad, and it worked.
So yeah, no more notepad!
Still, I have the same problem, the code from the original topic still makes the game crash, and still I don't know why.
When I remove it with notepad+ it works, so the problem is from that code.
EDIT:
I replaced the code with this one:
Code:
Object GLAInfantryAngryMobPistol01
VoiceSelect = AngryMobVoiceSelect
VoiceMove = AngryMobVoiceMove
VoiceGuard = AngryMobVoiceMove
VoiceAttack = AngryMobVoiceAttack
RemoveModule ModuleTag_04
End
It works, the unit doesn't die like it would normally do, it's selectable and moveable, it can shoot stuff. But it doesn't have a health bar, or a GUI, and also makes no sound when selected or ordered to move, don't know why.
Yet another EDIT:
Adding this to the code fixes the Health bar, GUI, and sounds problem.
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS INFANTRY SALVAGER
Edited by user Saturday, April 30, 2016 7:14:15 AM(UTC)
| Reason: Not specified