C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
Question: disabling a specific unit firing from garrison?
Private Joined: 5/4/2021(UTC) Posts: 5
|
Hi, I'm making some edits to infantry and I wonder if I could make some units like RPG soldiers not to fire while contained (inside a vehicle) while allowing other small arms infantry to fire normally. and mortar soldiers not to fire while contained or in garrison. things I thought of.. "PassengersAllowedToFire" under "TransportContain" but that effects all passengers
|
|
|
|
Private Joined: 1/10/2020(UTC) Posts: 14
|
G'day, Try this. In the units.ini file under 'Engineering Parameters' Behavior = AIUpdateInterface ModuleTag_04 AutoAcquireEnemiesWhenIdle = No End Cheer's General Brown.
|
|
|
|
Private Joined: 5/4/2021(UTC) Posts: 5
|
Hi, General Brown that didn't work sadly
|
|
|
|
Private Joined: 1/10/2020(UTC) Posts: 14
|
G'day, Do this as well, but this means that you have control over the units for attacking. 'DESIGN parameters' DELETE-'FROM_SCRIPT FROM_AI' and add FROM_PLAYER WeaponSet Conditions = NONE ; ----- Weapon = PRIMARY ASOSniperRifle AutoChooseSources = PRIMARY FROM_PLAYER DEFAULT_SWITCH_WEAPON ; ----- Weapon = SECONDARY ASOSniperRifleKP AutoChooseSources = SECONDARY FROM_PLAYER DEFAULT_SWITCH_WEAPON ; ----- Weapon = TERTIARY ASOSniperRifleKG AutoChooseSources = TERTIARY FROM_PLAYER DEFAULT_SWITCH_WEAPON WeaponLockSharedAcrossSets = Yes End Cheer's General Brown.
|
|
|
|
Captain Joined: 4/8/2009(UTC) Posts: 57 Location: In a house
Thanks: 5 times Was thanked: 5 time(s) in 3 post(s)
|
Originally Posted by: Iprahim9112 Hi, I'm making some edits to infantry and I wonder if I could make some units like RPG soldiers not to fire while contained (inside a vehicle) while allowing other small arms infantry to fire normally. and mortar soldiers not to fire while contained or in garrison. things I thought of.. "PassengersAllowedToFire" under "TransportContain" but that effects all passengers I seem to recall there is an easy way to do this but I can't for the life of me remember what it was. Something to do with the weaponset.
|
|
|
|
Major Joined: 11/6/2015(UTC) Posts: 152
Thanks: 8 times Was thanked: 4 time(s) in 4 post(s)
|
Check mod TEOD, Russia faction, RPGs there can't fire from fireports. If i remember correctly it's done via Quote: Behavior = TransportContain ModuleTag_05 Slots = 8 PassengersAllowedToFire = Yes ScatterNearbyOnExit = No HealthRegen%PerSec = 10 DamagePercentToUnits = 30% AllowInsideKindOf = INFANTRY ExitDelay = 300 NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting WeaponBonusPassedToPassengers = Yes End to activate bonus mechanic for inmates Quote:Weapon RussiaRPG_27Missile PrimaryDamage = 240.0 PrimaryDamageRadius = 3.0 ScatterRadiusVsInfantry = 20.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance. AttackRange = 225.0 PreAttackDelay = 900 PreAttackType = PER_SHOT MinimumAttackRange = 10.0 ; Rockets take some distance to target, and you don't want them to blow up in your face. DamageType = INFANTRY_MISSILE ;ignored for projectile weapons DeathType = EXPLODED WeaponSpeed = 600 ; ignored for projectile weapons ProjectileObject = RPG29M RadiusDamageAffects = ALLIES ENEMIES NEUTRALS ScatterRadius = 0 ; This weapon will scatter somewhere within a circle of this radius, instead of hitting someone directly DelayBetweenShots = 100 ; time between shots, msec ClipSize = 3 ; how many shots in a Clip (0 == infinite) ClipReloadTime = 60000 ; how long to reload a Clip, msec AutoReloadsClip = Yes FireSound = RPG29Fire FireFX = FX_RPG27MissileIgnition ProjectileDetonationFX = WeaponFX_LOWATDetonation AntiAirborneVehicle = No AntiAirborneInfantry = No WeaponBonus = PLAYER_UPGRADE RANGE -100% End to make 0 range(basically no fire) for RPG soldiers.
|
|
|
|
General Joined: 5/13/2013(UTC) Posts: 1,537 Location: Right Behind You Thanks: 574 times Was thanked: 166 time(s) in 144 post(s)
|
Originally Posted by: beng Originally Posted by: Iprahim9112 Hi, I'm making some edits to infantry and I wonder if I could make some units like RPG soldiers not to fire while contained (inside a vehicle) while allowing other small arms infantry to fire normally. and mortar soldiers not to fire while contained or in garrison. things I thought of.. "PassengersAllowedToFire" under "TransportContain" but that effects all passengers I seem to recall there is an easy way to do this but I can't for the life of me remember what it was. Something to do with the weaponset. Color me suprised to come back after a few years to see an old Generals modding vet here again. Wow! |
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there. |
|
|
|
Users browsing this topic |
Guest
|
C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
Question: disabling a specific unit firing from garrison?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.