Jump to content

ElectroCarrier

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About ElectroCarrier

  • Rank
    Newbie
  1. ElectroCarrier

    Challenging Game? Where?

    Well you can make the carrier much more challenging if you have time to do it yourself. Reading the script-code for the carrier, he actually do attack you only in one case (if he has nowhere to go) due to what I call a tiny bug. I changed that single line of code it is about and increased his "attack-awareness"-radius. You see, the code for launching all mantas, all walruses and other stuff already exists but it is not called when you would like it to do. Since I have not asked for a permission to release a mod I probably wont do that for a while. But I will make a personalized experience anyway at the meantime. Here you can see three images when the enemycarrier attack me with all his got...(Yes I die in that fight). He even turns around and hunt me. https://www.dropbox.com/s/l1klo7610g9b1p0/Enemy_carrier_attacking.jpg https://www.dropbox.com/s/uszysbrk82uu5ge/attack3.jpg https://www.dropbox.com/s/n7crmo0mjc2blkw/Attack1.jpg So there is no reason to give up hope on the game yet. :) /J.
  2. ElectroCarrier

    Mod Script Findings

    Hi.. I really do love this game, it is very fun to play, and would hate if it would go to waste so I ended up here and found the fantastic Carrier Tool! One problem is the whimpy Carrier AI that run pasts you and doing nothing in most of the times. Since I'm an old programmer and had some time over I scanned through the AI-code and I found and fixed one AI-problem in uec_militaryadvisor.h in the class MilitaryAdvisor, function: AnalyzeNeeds I found this code: if ( AvoidEnemyCarrier ) WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); else { if ( myCurr == enCurr && d < 320.0 ) // 1000m WriteNeed( Logger, mem, this, ASSAULT_CARRIER, enemy.GetID(), 0, 9 ); else WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); } and replaced it with: if ( AvoidEnemyCarrier ) WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); else { if ( d < 640.0 ) // 2000m ... { WriteNeed( Logger, mem, this, ASSAULT_CARRIER, enemy.GetID(), 0, 9 ); } else { WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); } } If you get too close to him he might get very personal and come after you with walruses and mantas! The Carrier -battles will be awesome! But he will still run if he is scared of you. :) Happy Hunting /J. ---------- Post added at 19:48 ---------- Previous post was at 19:39 ---------- Omg.. sorry for the previoius post.. The code looked terrible.. I try again with code-tags Replace: if ( AvoidEnemyCarrier ) WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); else { if ( myCurr == enCurr && d < 320.0 ) // 1000m { WriteNeed( Logger, mem, this, ASSAULT_CARRIER, enemy.GetID(), 0, 9 ); else WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); } With: if ( AvoidEnemyCarrier ) WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); else { if ( d < 640.0 ) // 2000m { WriteNeed( Logger, mem, this, ASSAULT_CARRIER, enemy.GetID(), 0, 9 ); } else { WriteNeed( Logger, mem, this, GOTO_ISLAND, enCurr.GetArea(), 0, 9 ); } }
×