Author Topic: Turning an friendly unit into an ai controlled one? Evil Doge??  (Read 2966 times)

Offline wolf619

  • Sergeant
  • **
  • Posts: 22
    • View Profile
I want to make an ENEMY AI version of the doge mod, I've got a version I made that runs and gives no errors but I can't see if it works. When I go into quick battle they don't show up under the alien races, I must be doing something wrong but can anyone tell me how difficult this would be to do? I've got other ideas based off the doge mod so if someone could help me that would be AWESOME!
Thank you guys so much!
 ;D 8)

One idea I have is https://www.realm667.com/index.php/en/beastiary-mainmenu-136/744-rottweiler converting these sprites. Someone ( Captain Toenail) already made a rottweiler using sprites from wolf 3d as a base(where the original doge sprites are from), so this would be a cool asset!

--- posts merged. please be informed that double posting isn't a cool thing to do ---

Here's the modified code I made, It's probably really bad lol Any help is appreciated!

items:
  - type: STR_DOGE
    size: 6
    costBuy: 5000
    costSell: 4000
    transferTime: 48
    weight: 1
    bigSprite: 200
    floorSprite: 0
    handSprite: 0
    power: 40
    damageType: 7
    meleeSound: 200
    accuracyMelee: 95
    tuMelee: 10
    battleType: 3
    fixedWeapon: true
    clipSize: -1
    invWidth: 2
    invHeight: 3
    listOrder: 1073
  - type: STR_DOGE_CORPSE
    weight: 25
    bigSprite: 201
    floorSprite: 200
    invWidth: 2
    invHeight: 3
    battleType: 11
    recover: false
    armor: 35
units:
  - type: STR_ATTACKDOG
    race: STR_DOGE
    stats:
      tu: 80
      stamina: 90
      health: 25
      bravery: 110
      reactions: 70
      firing: 0
      throwing: 0
      strength: 2
      psiStrength: 40
      psiSkill: 0
      melee: 100
    armor: DOGE_ARMOR
    standHeight: 12
    kneelHeight: 12
    value: 6
    deathSound: 201
    energyRecovery: 30
    livingWeapon: true
armors:
  - type: DOGE_ARMOR
    spriteSheet: DOGE.PCK
    corpseBattle:
      - STR_DOGE_CORPSE
    frontArmor: 0
    sideArmor: 0
    rearArmor: 0
    underArmor: 0
    movementType: 0
    drawingRoutine: 4
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 0.5
      - 1.0
      - 1.0
    loftempsSet: [ 2 ]
alienRaces:
  - id: STR_DOGE
    members:
      - STR_ATTACK_DOG
ufopaedia:
  - id: STR_DOGE
    type_id: 3
    section: STR_HEAVY_WEAPONS_PLATFORMS
    text: STR_DOGE_UFOPEDIA
    weapon: STR_DOGE_JAWS
extraSprites:
  - type: DOGE.PCK
    subX: 32
    subY: 40
    width: 512
    height: 200
    files:
      0: Resources/Doge/DOGE.png
  - type: BIGOBS.PCK
    files:
      200: Resources/Doge/Doge_Jaws.gif
      201: Resources/Doge/DOGE_b.gif
  - type: FLOOROB.PCK
    files:
      200: Resources/Doge/DOGE_c.gif
extraSounds:
  - type: BATTLE.CAT
    files:
      200: Resources/Doge/DogeAttack.wav
      201: Resources/Doge/DogeDeath.wav
alienMissions:
  - type: STR_ALIEN_RESEARCH
    raceWeights:
      4:
          STR_DOGE: 5
      6:
          STR_DOGE: 10
      7:
          STR_DOGE: 5
  - type: STR_ALIEN_ABDUCTION
    raceWeights:
      4:
          STR_DOGE: 5
      6:
          STR_DOGE: 10
      7:
          STR_DOGE: 10
  - type: STR_ALIEN_INFILTRATION
    raceWeights:
      3:
          STR_DOGE: 10
      5:
          STR_DOGE: 10
      7:
          STR_DOGE: 20
  - type: STR_ALIEN_BASE
    raceWeights:
      3:
          STR_DOGE: 10
      5:
          STR_DOGE: 10
      7:
          STR_DOGE: 10
  - type: STR_ALIEN_TERROR
    raceWeights:
      4:
          STR_DOGE: 20
      6:
          STR_DOGE: 10
      7:
          STR_DOGE: 5
extraStrings:
  - type: en-US
    strings:
      STR_DOGE: "Attack Dog"
      STR_DOGE_CORPSE: "Dead Dog"
      STR_DOGE_JAWS: "Bite"
      STR_DOGE_UFOPEDIA: "These highly trained dogs, while quite expensive, are fully capable at battlefield conditions. They can spot aliens but won't attack unless ordered to do so. To avoid compromising their positions, X-Com agents can communicate with these dogs via ultrasound whistles."
« Last Edit: April 01, 2018, 10:46:48 pm by Solarius Scorch »

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Turning an friendly unit into an ai controlled one? Evil Doge??
« Reply #1 on: April 02, 2018, 08:07:01 pm »
Code: [Select]
raceWeights:
      4:
          STR_DOGE: 5
      6:
          STR_DOGE: 10
      7:
          STR_DOGE: 10
will lead to only dogs spawning as enemys.
But you need 8 members in any race to make deployments work. They can be the same dog though. Like
Code: [Select]
alienRaces:
  - id: STR_DOGE
    members:
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG
      - STR_ATTACK_DOG

Offline wolf619

  • Sergeant
  • **
  • Posts: 22
    • View Profile
Re: Turning an friendly unit into an ai controlled one? Evil Doge??
« Reply #2 on: April 09, 2018, 06:49:33 am »
ok cool thank you I will have to try this out!  :)