Posted by: Omar - Friday, April 22, 2011 2:56:23 AM
how do you add propaganda effects to a unit?
Posted by: BR-Alexandre - Friday, April 22, 2011 4:05:47 AM
Try find the ini used by the infantry troop crawler, they have propaganda effects, rigth?
Posted by: glumurr - Friday, April 22, 2011 5:19:24 AM
I think this is the code for the propaganda effects.
just copy it and place it with the module tags for the unit.
[code] Behavior = PropagandaTowerBehavior ModuleTag_1000
Radius = 100
DelayBetweenUpdates = 4000 ; in milliseconds
HealPercentEachSecond = 2% ; get this % of max health every second
PulseFX = FX_PropagandaTowerPropagandaPulse ;plays as often as DelayBetweenUpdates
UpgradeRequired = Upgrade_ChinaSubliminalMessaging
UpgradedHealPercentEachSecond = 4% ; get this % of max health every second
UpgradedPulseFX = FX_PropagandaTowerSubliminalPulse ;plays as often as DelayBetweenUpdates
End[/code]
Posted by: Omar - Friday, April 22, 2011 5:28:09 AM
i have already tried it but when i make the battleship the game crashes.
heres how it looks like:
Locomotor = SET_NORMAL BattleshipLocomotor
Behavior = PhysicsBehavior ModuleTag_04
Mass = 5000.0
End
Behavior = PropagandaTowerBehavior ModuleTag_05
Radius = 300.0
DelayBetweenUpdates = 2000 ; in milliseconds
HealPercentEachSecond = 10% ; get this % of max health every second
PulseFX = FX_PropagandaTowerPropagandaPulse ;plays as often as DelayBetweenUpdates
End
Geometry = BOX
GeometryMajorRadius = 200.0
GeometryMinorRadius = 20.0
GeometryHeight = 40
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
End
Posted by: glumurr - Friday, April 22, 2011 7:28:37 AM
try running the world builder,
it oftens shows what the problem is.
did it crash before you placed the propaganda effects?
I can see that your propaganda code is a bit diffrient that the cod that I posterd.
try to place my code and see what happends..
I hope that would work but I do not know.
*Edid*
I placed my code on a avenger and it worked very well...
there must be something in your code that you erased from it...
Posted by: Omar - Friday, April 22, 2011 8:00:02 AM
i tried yours and it half works.
it only heals other battleships.
any other type of unit won't get healed.
ok.
so after testing i found out that it worked from the beggining but propaganda doesnt work on boats.
so heres the suloution:add propaganda to all boats.
tell you how it goes after testing.
Posted by: glumurr - Friday, April 22, 2011 8:39:47 AM
okay
Posted by: Omar - Friday, April 22, 2011 8:49:32 AM
propaganda still doesnt work on boats!!!!!!!!!!!!!!!!
what makes boats bloody propaganda proof!!!!!!!!
neeeeeeeeeeeeed heeeeeelllllllllpppppppppp!!!!!!!!!!!!!!!!!!!!!!!!!!
Posted by: glumurr - Friday, April 22, 2011 9:00:34 AM
I don't know :/
I have noticed on the troop crawlers that have the propaganda that they can not healtehm selfs.
so hmm..
teh overlords can heal them self so maybe the answer is there.
I'l go and check
I can not help this time.
I am sorry :/
maybe someone else can help.
Posted by: CommieDog - Friday, April 22, 2011 10:37:12 AM
Try seeing if a Speaker Tower affects the boats.
Posted by: BR-Alexandre - Friday, April 22, 2011 7:16:30 PM
or, if you can, check if overlord/emperor tower affect them also, so then just put the tower in the boats with the emperor codes (sorry, can't help with those as never tried work with .ini files)
Posted by: Omar - Saturday, April 23, 2011 1:57:17 AM
i have found a better way to heal my boats other than propaganda.
search for any american building then search for base regenrate update.
i know what your thinking,it is too slow but...
if you add more than one base regenerate update with different module numbers it will work just like propaganda.
heres how it looks like:
Behavior = BaseRegenerateUpdate ModuleTag_16
; none
End
Behavior = BaseRegenerateUpdate ModuleTag_17
; none
End
Behavior = BaseRegenerateUpdate ModuleTag_18
; none
End
Behavior = BaseRegenerateUpdate ModuleTag_19
; none
End
Behavior = BaseRegenerateUpdate ModuleTag_20
; none
End
by the way,thank you all for the help.
i appreciate it.
Posted by: Annihilationzh - Saturday, April 23, 2011 12:44:11 PM
^That's not good for game lag. Every module will make the game run slower. That won't be notable in a normal game, but if you build a lot of them, it'll lag.
You can use 'AutoHealBehavior' (check the GLA vehicles for an example, as they have junk repair) to make something heal at whichever rate you wish.