Is it possible to build an AI tank that shoots zombie ai tanks and zombies with engineer hammer?

wtf
i found a very weird thing, the tank works very well without a roof! I mean if i put it outside my warehouse, it deletes every ha-go in its reach(front and back, all around it). But if i put it inside the warehouse, it just stops shooting instantly. See video below!

1 Like

image
The rooftop mg is confirmed working!

1 Like

But now another problem comes
Some time AI tanks (including the zombie ones) will overload the server

@Devenddar i cannot change the tank shells with the codes
You see here its still APCBC


Turret 01 code as follows

pzkpfw_iii_ausf_n_turret_01_75mm_kwk37{
  _override:b=yes

  _group{
    _tags:t="server"
    tank_turret_ai__maxBurstCount:i=0
	tank_turret_ai__burstCount:i=3
	tank_turret_ai__burstWaitTime:r=1.0
	tank_turret_ai__dmTargetUpdateInterval:r=1.0
	tank_turret_ai__nextTargetCheckAtTime:r=1.0
	tank_turret_ai__targetCheckInterval:r=1.0
    tank_turret_ai__longPauseWaitTime:r=1.0
    tank_turret_ai__attackDist:r=100.0
	turret_ai__atackDist:r=100.0
  }
  turret__yawSpeed:r=200.0
  turret__pitchSpeed:r=200.0
  "gun__shellsAmmo:array"{
    gun__shellsAmmo:i=1000
  }

  "gun__shells:array"{
    gun__shells:t="gamedata/gen/weapons/shells/75mm_kwk37_75mm_ger_kwk40_37_he.blk"
  }
}

Probably you need edit gun__ammoSetsInfo property.

1 Like

Is this incorrect??

pzkpfw_iii_ausf_n_turret_01_75mm_kwk37{
  _override:b=yes

  _group{
    _tags:t="server"
    tank_turret_ai__maxBurstCount:i=0
	tank_turret_ai__burstCount:i=3
	tank_turret_ai__burstWaitTime:r=1.0
	tank_turret_ai__dmTargetUpdateInterval:r=1.0
	tank_turret_ai__nextTargetCheckAtTime:r=1.0
	tank_turret_ai__targetCheckInterval:r=1.0
    tank_turret_ai__longPauseWaitTime:r=1.0
    tank_turret_ai__attackDist:r=100.0
	turret_ai__atackDist:r=100.0
  }
  turret__yawSpeed:r=200.0
  turret__pitchSpeed:r=200.0
  "gun__shellsAmmo:array"{
    gun__shellsAmmo:i=1000
  }

  "gun__shells:array"{
    gun__shells:t="gamedata/gen/weapons/shells/75mm_kwk37_75mm_ger_kwk40_37_he.blk"
  }
  "gun__ammoSetsInfo:shared:array"{
    "gun__ammoSetsInfo:array"{
	   "gun__ammoSetsInfo:object"{
	     blk:t="gamedata/gen/weapons/shells/75mm_kwk37_75mm_ger_kwk40_37_he.blk"
		 name:t="75mm_sprgr_34"
		 type:t="he_frag_tank"		
		}
	}
  }
}

I cannot figure out the 2-dimentional array format

1 Like

Never mind i have done like this

pzkpfw_iii_ausf_n_turret_01_75mm_kwk37{
  _override:b=yes

  _group{
    _tags:t="server"
    tank_turret_ai__maxBurstCount:i=0
	tank_turret_ai__burstCount:i=3
	tank_turret_ai__burstWaitTime:r=1.0
	tank_turret_ai__dmTargetUpdateInterval:r=1.0
	tank_turret_ai__nextTargetCheckAtTime:r=1.0
	tank_turret_ai__targetCheckInterval:r=1.0
    tank_turret_ai__longPauseWaitTime:r=1.0
    tank_turret_ai__attackDist:r=100.0
	turret_ai__atackDist:r=100.0
	"gun__shellsAmmo:array"{
    gun__shellsAmmo:i=0
	gun__shellsAmmo:i=1000
  }

  "gun__shells:array"{
    gun__shells:t="gamedata/gen/weapons/shells/75mm_kwk37_75mm_ger_kwk40_37_he.blk"
  }
  "ammo_set__shellIds:list<i>"{
    item:i=1
  }
  }
  turret__yawSpeed:r=200.0
  turret__pitchSpeed:r=200.0
  
}
1 Like

And it doesn’t work? Hmmm… Anyways… I’ll check it, becuase I need it too for aircraft carrier turrets (it have untranslated names for ammo).

No, the code in this post worked. You might just need to put the code into the group tag=server part

1 Like

Thanks.

Yeah. I saw it. Just wanted to know more details.