Code Search for Developers
 
 
  

tankais.xml from Scorched 3D at Krugle


Show tankais.xml syntax highlighted

<ais>
	<ai>
		<name>Cyborg</name>
		<description>A deady computer controlled player.  Ouch!!</description>
		<!-- Is the random computer player allowed this tank type -->
		<availableforrandom>true</availableforrandom>
		<!-- Are AIs controlling players allowed to use the type -->
		<availableforplayers>true</availableforplayers>

		<weapons>
			<!-- A list of weapon sets that will be considered during buying.
				Only one weaponset will be selected. -->
			<weaponset>WeaponSetFull</weaponset>
		</weapons>
		<defense>
			<!-- Use batteries if available -->
			<usebatteries>true</usebatteries>
			<!-- Use shields if available -->
			<useshields>true</useshields>
			<!-- Use parachutes if available -->
			<useparachutes>true</useparachutes>
		</defense>
		<attack>
			<resign>
				<!-- Try resigning rules -->
				<useresign>true</useresign>
				<!-- Don't consider resigning unless you have less than this amount of life -->
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<!-- Tank must have fuel before movement can occur. -->
				<!-- Try movement rules -->
				<usefuel>true</usefuel>
				<!-- The amount of damage taken before movement is considered-->
				<movementdamage>300.0</movementdamage>
				<!-- Once the above damage has been taken the chance to move out the way -->
				<movementdamagechance>0.3</movementdamagechance>
				<!-- The amount of life before we consider moving -->
				<movementlife>75.0</movementlife>
				<!-- The randomness applied to the final movement position -->
				<movementrandom>10.0</movementrandom>
				<!-- The distance left between the target tank and the movement destination -->
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<!-- The number of tanks that need to be grouped before considering a group shot 
					A group shot is available if targets are close together and the tank has
					a hugeweapon. -->
				<groupshotsize>2</groupshotsize>
				<!-- The chance that a group shot will be considered -->
				<groupshotchance>0.7</groupshotchance>
				<!-- The max distance between tanks considered grouped -->
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<!-- Sniper shots are used for both lasers and projectiles on full power. -->
				<!-- How close do I need to be from a target before considering a sniper shot -->
				<sniperusedistance>80.0</sniperusedistance>
				<!-- The distance in degress that my 1st sniper shot may miss by -->
				<sniperstartdistance>0.0</sniperstartdistance>
				<!-- The distance in degrees that my best sniper shot may miss by -->
				<sniperenddistance>0.0</sniperenddistance>
				<!-- The min distance in degrees that each sniper shot will improve -->
				<snipermindecrement>2.0</snipermindecrement>
				<!-- The max distance in degrees that each sniper shot will improve -->
				<snipermaxdecrement>5.0</snipermaxdecrement>
				<!-- The maximum amount of accuracy in degrees that will be lost if the tank moves -->
				<snipermovementfactor>4.0</snipermovementfactor>
			</sniper>
			<projectile>
				<!-- The minimum distance to allow for shots.  Stops self kills -->
				<projectilemindistance>10.0</projectilemindistance>
				<!-- These are all distances of the 1st particle of the projectile to hit the ground. -->
				<!-- The distance that the 1st projectile shot may miss by -->
				<projectilestartdistance>10.0</projectilestartdistance>
				<!-- The distance that the my best projectile shot may get to -->
				<projectileenddistance>5.0</projectileenddistance>
				<!-- The min distance that each projecile shot will improve -->
				<projectilemindecrement>2.0</projectilemindecrement>
				<!-- The max distance that each projecile shot will improve -->
				<projectilemaxdecrement>4.0</projectilemaxdecrement>
				<!-- How close a shot do I need to get to a target before firing large weapons -->
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<!-- The maximum amount of accuracy that will be lost if the tank moves -->
				<projectilemovementfactor>10.0</projectilemovementfactor>
			</projectile>

			<!-- 
				Weighting factors use to determine which tank to fire at. 
				Targets are all ranked using these factors.
				The top weighted targets are selected to be fired at 1st. 
				Each factor is multiplied by the weight and then all factors are added
				to give the total weighting. 
				All factors are in the range -1.0 to 1.0 before weighting.
			-->
			<targets>
				<health>-0.2</health>
				<random>0.1</random>
				<player>0</player>
				<shield>-0.2</shield>
				<score>0.3</score>
				<repeat>0.3</repeat>
				<damagetaken>0.3</damagetaken>
				<damagedone>0.3</damagedone>
				<distance>0.0</distance>
			</targets>		  
		</attack>
	</ai>

	<ai>
		<name>Shark</name>
		<description>A very good computer controlled player.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetFull</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>true</useshields>
			<useparachutes>true</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>true</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>true</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.3</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>2</groupshotsize>
				<groupshotchance>0.2</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>80.0</sniperusedistance>
				<sniperstartdistance>10.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>2.0</snipermindecrement>
				<snipermaxdecrement>3.0</snipermaxdecrement>
				<snipermovementfactor>6.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>10.0</projectilemindistance>
				<projectilestartdistance>25.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>5.0</projectilemindecrement>
				<projectilemaxdecrement>8.0</projectilemaxdecrement>
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<projectilemovementfactor>15.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>-0.1</health>
				<random>0.2</random>
				<player>0</player>
				<shield>0</shield>
				<score>0.2</score>
				<repeat>0.4</repeat>
				<damagetaken>0.2</damagetaken>
				<damagedone>0</damagedone>
				<distance>-0.5</distance>
			</targets>
		</attack>
	</ai>

	<ai>
		<name>Chooser</name>
		<description>A good computer controlled player.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetLarge</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>true</useshields>
			<useparachutes>true</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>true</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>false</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.3</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>2</groupshotsize>
				<groupshotchance>0.2</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>80.0</sniperusedistance>
				<sniperstartdistance>10.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>2.0</snipermindecrement>
				<snipermaxdecrement>3.0</snipermaxdecrement>
				<snipermovementfactor>6.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>10.0</projectilemindistance>
				<projectilestartdistance>40.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>5.0</projectilemindecrement>
				<projectilemaxdecrement>10.0</projectilemaxdecrement>
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<projectilemovementfactor>15.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>0</health>
				<random>0</random>
				<player>-0.25</player>
				<shield>0</shield>
				<score>0.4</score>
				<repeat>0.25</repeat>
				<damagetaken>0.5</damagetaken>
				<damagedone>0</damagedone>
				<distance>-1.0</distance>
			</targets>
		</attack>
	</ai>

	<ai>
		<name>Tosser</name>
		<description>An average computer controlled player.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetBasic</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>false</useshields>
			<useparachutes>true</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>true</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>false</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.1</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>5</groupshotsize>
				<groupshotchance>0.2</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>50.0</sniperusedistance>
				<sniperstartdistance>10.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>2.0</snipermindecrement>
				<snipermaxdecrement>3.0</snipermaxdecrement>
				<snipermovementfactor>6.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>10.0</projectilemindistance>
				<projectilestartdistance>50.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>5.0</projectilemindecrement>
				<projectilemaxdecrement>12.0</projectilemaxdecrement>
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<projectilemovementfactor>20.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>0</health>
				<random>0</random>
				<player>-0.5</player>
				<shield>0</shield>
				<score>0</score>
				<repeat>0</repeat>
				<damagetaken>0.5</damagetaken>
				<damagedone>0</damagedone>
				<distance>-1.0</distance>
			</targets>
		</attack>
	</ai>

	<ai>
		<name>Shooter</name>
		<description>A poor computer controlled player.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetBasic</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>false</useshields>
			<useparachutes>false</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>true</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>false</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.0</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>2</groupshotsize>
				<groupshotchance>0.2</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>80.0</sniperusedistance>
				<sniperstartdistance>10.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>2.0</snipermindecrement>
				<snipermaxdecrement>3.0</snipermaxdecrement>
				<snipermovementfactor>8.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>5.0</projectilemindistance>
				<projectilestartdistance>50.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>5.0</projectilemindecrement>
				<projectilemaxdecrement>10.0</projectilemaxdecrement>
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<projectilemovementfactor>30.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>0</health>
				<random>0</random>
				<player>-1.0</player>
				<shield>0</shield>
				<score>0</score>
				<repeat>0</repeat>
				<damagetaken>0</damagetaken>
				<damagedone>0</damagedone>
				<distance>-1.0</distance>
			</targets>
		</attack>
	</ai>

	<ai>
		<name>Moron</name>
		<description>A very stupid computer controlled player.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetMinimal</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>false</useshields>
			<useparachutes>false</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>false</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>false</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.0</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>0</groupshotsize>
				<groupshotchance>0.2</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>10.0</sniperusedistance>
				<sniperstartdistance>10.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>0.0</snipermindecrement>
				<snipermaxdecrement>0.0</snipermaxdecrement>
				<snipermovementfactor>10.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>0.0</projectilemindistance>
				<projectilestartdistance>50.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>0.0</projectilemindecrement>
				<projectilemaxdecrement>0.0</projectilemaxdecrement>
				<largeweaponusedistance>25.0</largeweaponusedistance>
				<projectilemovementfactor>20.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>0</health>
				<random>1.0</random>
				<player>0</player>
				<shield>0</shield>
				<score>0</score>
				<repeat>0</repeat>
				<damagetaken>0</damagetaken>
				<damagedone>0</damagedone>
				<distance>0</distance>
			</targets>
		</attack>
	</ai>

	<ai>
		<name>Target</name>
		<description>A computer controlled player. 
These tanks act as static targets. 
They will NEVER fire back.</description>
		<availableforrandom>true</availableforrandom>
		<availableforplayers>true</availableforplayers>

		<weapons>
			<weaponset>WeaponSetEmpty</weaponset>
		</weapons>
		<defense>
			<usebatteries>false</usebatteries>
			<useshields>false</useshields>
			<useparachutes>false</useparachutes>
		</defense>
		<attack>
			<resign>
				<useresign>false</useresign>
				<resignlife>10.0</resignlife>
			</resign>
			<movement>
				<usefuel>false</usefuel>
				<movementdamage>300.0</movementdamage>
				<movementdamagechance>0.3</movementdamagechance>
				<movementlife>75.0</movementlife>
				<movementrandom>10.0</movementrandom>
				<movementcloseness>15.0</movementcloseness>
			</movement>
			<groupshot>
				<groupshotsize>0</groupshotsize>
				<groupshotchance>0.7</groupshotchance>
				<grouptargetdistance>25.0</grouptargetdistance>
			</groupshot>
			<sniper>
				<sniperusedistance>80.0</sniperusedistance>
				<sniperstartdistance>0.0</sniperstartdistance>
				<sniperenddistance>0.0</sniperenddistance>
				<snipermindecrement>2.0</snipermindecrement>
				<snipermaxdecrement>5.0</snipermaxdecrement>
				<snipermovementfactor>4.0</snipermovementfactor>
			</sniper>
			<projectile>
				<projectilemindistance>10.0</projectilemindistance>
				<projectilestartdistance>10.0</projectilestartdistance>
				<projectileenddistance>5.0</projectileenddistance>
				<projectilemindecrement>1.0</projectilemindecrement>
				<projectilemaxdecrement>4.0</projectilemaxdecrement>
				<largeweaponusedistance>10.0</largeweaponusedistance>
				<projectilemovementfactor>10.0</projectilemovementfactor>
			</projectile>
			<targets>
				<health>0</health>
				<random>0</random>
				<player>0</player>
				<shield>0</shield>
				<score>0</score>
				<repeat>0</repeat>
				<damagetaken>0</damagetaken>
				<damagedone>0</damagedone>
				<distance>0.0</distance>
			</targets>
		</attack>	
	</ai>

</ais>




See more files for this project here

Scorched 3D

Scorched3D is a 3D remake of the popular 2D artillery game Scorched Earth.\r\nScorched3D can be played against the computer, other players and remotely across the internet or LAN.

Project homepage: http://sourceforge.net/projects/scorched3d
Programming language(s): C,C++,XML
License: gpl2

  accessories/
    banana/
      banana.txt
      bantex.bmp
    barrage/
      barrage.txt
      gradient.bmp
      white.bmp
      yellow.bmp
    beer_bottle/
      bottle.bmp
      bottle.txt
    bomb/
      black.bmp
      bomb.txt
      white.bmp
    bomblet/
      bomblet.txt
      yellow.bmp
    bouncingbetty/
      black.bmp
      bouncingbetty.txt
    digger/
      black.bmp
      digger.txt
      swirl.bmp
    dirt/
      camo.bmp
      dirt.txt
    fatman/
      black.bmp
      fatman.txt
    hawkmissile/
      gradient.bmp
      hawk.txt
      white.bmp
      yellow.bmp
    herring/
      body.bmp
      eyes.bmp
      herring.txt
    icbm/
      black.bmp
      gradient.bmp
      icbm.txt
      white.bmp
      yellow.bmp
    laser/
      about.txt
      alpha2.bmp
      blue128.bmp
      hlaser.txt
      laser.txt
      red128.bmp
    littleboy/
      black.bmp
      littleboy.txt
    m48/
      gradient.bmp
      m48.txt
      white.bmp
      yellow.bmp
    mirvwarhead/
      black.bmp
      mirvwarhead.txt
    napalm/
      body.bmp
      napalm.txt
    palmtree/
      black.bmp
      burntpalm.txt
      burntpalm2.txt
      green.bmp
      palm.txt
      palm2.txt
      tan.bmp
    patriot/
      gradient.bmp
      patriot.txt
      white.bmp
      yellow.bmp
    pinguins/
      2pinguins.txt
      birdmat.bmp
      pinguin1.txt
      pinguin2.txt
    pwrcrate/
      pwrcrate.bmp
      pwrcrate.txt
    riot/
      base.bmp
      body.bmp
      riot.txt
    roller/
      roller.bmp
      roller.txt
    sa6/
      gradient.bmp
      sa6.txt
      white.bmp
      yellow.bmp
    shack/
      roof.bmp
      shack.bmp
      shack.txt
      window.bmp
    shell/
      black.bmp
      shell.txt
    smallpine/
      black.bmp
      burntsmallpine.txt
      green.bmp
      smallpine.txt
      smallpine2.txt
      smallpine3.txt
      tan.bmp
      wintergreen.bmp
      wintersmallpine.txt
      wintersmallpine2.txt
      wintersmallpine3.txt
    sonicring/
      sonicring.bmp
      sonicring.txt
    teleport/
      base.bmp
      detail.bmp
      teleport.txt
    v2missile/
      black.bmp
      checker.bmp
      gradient.bmp
      v2missile.txt
      yellow.bmp
    clusterbomb.ase
    clusterbomb2.ase
    default.ase
    default.bmp
    flare.txt
    magma.bmp
    roller.ase
    white.bmp
  avatars/
    agreement.txt
    animal.png
    baby.png
    bavia.png
    computer.png
    daisy.png
    fish.png
    flower.png
    floyd.png
    heart.png
    lips.png
    mxpx.png
    pint.png
    player.png
    prot.png
    termin.png
    vader.png
    web.png
    yoda.png
  fonts/
    VERA-COPYRIGHT.TXT
    test.ttf
    testout.ttf
    vera.ttf
    veramobd.ttf
  globalmods/
    apoc/
    globalmods.txt
  html/
    server/
  landscapes/
    ambientsoundjet.xml
    ambientsoundjungle.xml
    ambientsoundlava.xml
    ambientsoundnight.xml
    ambientsoundrain.xml
    ambientsoundtrees.xml
    ambientsoundwaves.xml
    ascencion-pic.bmp
    ascencion.bmp
    boidsah64.xml
    boidsbats.xml
    boidsf16.xml
    boidsf18.xml
    boidsgulls.xml
    boidsparrot.xml
    canyon-pic.bmp
    canyon.bmp
    cavern-pic.bmp
    defnascencion.xml
  meshes/
  shaders/
  talk/
  tanks/
  textures/
  wav/
  windows/
  accessories.xml
  ainames.txt
  autoexec.xml
  custominfo.xml
  fastestdisplay.xml
  keys.xml
  landscapes.xml
  modinfo.xml
  mysql.xml
  playernames.txt
  prunetables.sql
  random.no
  safedisplay.xml
  server.xml
  singlecustom.xml
  singleeasy.xml
  singlehard.xml
  singlenormal.xml
  singletarget.xml
  singletutorial.xml
  ssdisplay.xml
  ssgame.xml
  statstables.sql
  tankais.xml
  tankaiweaponsets.xml
  tanks.xml
  tanktypes.xml
  textureset.xml
  tips.txt
  tutorial.xml
  windows.xml