Jump to content


Photo

A question...


  • Please log in to reply
14 replies to this topic

#1 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 25 June 2015 - 09:47 AM

Hey, I wonder if anybody figured out why lurtz, haldir and other cheap heroes are ultra agressive. I mean, they have a tendency to hunt enemies over great distance, and they usually die because of that.

2qm3dd5.jpg


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 June 2015 - 11:12 AM

Might be the reason they are cheaper, you need to keep an eye on them or they will die easily :p

Or do you actually mean coding behind it?

And if so AI wise or simple unit logic wise?


Edited by Ridder Geel, 25 June 2015 - 11:13 AM.

Ridder Geel

#3 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 25 June 2015 - 11:41 AM

I mean, where's the coding that makes them behave that way.... and I don't think that's because of AI, they hunt for any player.

2qm3dd5.jpg


#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 June 2015 - 12:02 PM

Hm... Is lurtz using his bow at the time that he runs after them?

Maybe the attack range or vision range has something to do with it.


Ridder Geel

#5 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 25 June 2015 - 12:52 PM

With both weapons, but especially with sword. Same for haldir.

2qm3dd5.jpg


#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 June 2015 - 03:14 PM

Oh wait, before i continue looking into this, BFME 2 or ROTWK? (as in which one are you using, that way i know where to look :p) (not sure it makes a difference but ok :xd: )


Ridder Geel

#7 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 25 June 2015 - 04:12 PM

bfme2 but if i rememember well it occurs in rotwk too
also for further stuff like this, its always for bfme2 ( i dont like rotwk xD)

Edited by -SilverBane-, 25 June 2015 - 04:13 PM.

2qm3dd5.jpg


#8 The Smoking Man™

The Smoking Man™

    Developer & Composer

  • T3A Staff
  • 113 posts
  • Projects:game.dat, RotWk Patch 2.02 (retired)
  •  Mysterious figure...
  • Division:BFME
  • Job:T3A Staff

Posted 26 June 2015 - 02:06 AM

Yes they auto-acquire enemies over huge lengths. Haven't looked into fixing it though.


Edited by The Smoking Man, 26 June 2015 - 02:07 AM.

~ Former "Rise of the Witch-king Patch 2.02" Project Coordinator, Developer and Sound Artist (version 5.0.0 & 5.0.1) ~

~ Former GameReplays.org Events Manager, Advisor, Senior Referee (2x), Strategy Specialist (2x) and Replay Reviewer ~

~ Former Clanwars.cc Rise of the Witch-king section Administrator (2x) ~

~ Can't run Rise of the Witch-king on Windows 10 without the CD? Try my No-DVD Maxi-image files! ~

 

Download The Battle for Middle-earth

Download The Battle for Middle-earth II

Download The Rise of the Witch-king Expansion Pack


#9 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 26 June 2015 - 08:05 PM

Might it be in the LUA? i mean,

looks like lurtz doesn't have functions :p

his code related this:


	Behavior = AIUpdateInterface ModuleTag_03
		AutoAcquireEnemiesWhenIdle	= Yes ATTACK_BUILDINGS
		MoodAttackCheckRate			= 500
		AttackPriority				= AttackPriority_Archer
		CanAttackWhileContained	    = Yes
	End

2qm3dd5.jpg


#10 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 26 June 2015 - 08:42 PM

I'd guess it would be this:

 

	VisionRange = VISION_HERO_RANGED
	ShroudClearingRange = SHROUD_CLEAR_RANGED_HERO

as other heroes have

	VisionRange = VISION_STANDARD_MELEE				
	ShroudClearingRange = SHROUD_CLEAR_STANDARD

Or at least the vision part. Since Melee is 150 and Hero Ranged is 450

 

It would only make sense they attack something when they see it. (Without fog of war perma revealed)

 

I'd assume it's for all archer heroes to attack further away. But they haven't developed an advanced system where it checked for sword or bow out. So it would just force him to attack from that distance instead.


Edited by Maximan, 26 June 2015 - 08:44 PM.


#11 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 01 July 2015 - 04:10 PM

More questions :p

1. What does PresetRange in commandbuttons do? I think thats the one that makes the hero unable to use certain spell if in middle of enemy units, but i'm not sure.

2. Where is that thing that makes you able to see "haldir has fallen" or whatever?


2qm3dd5.jpg


#12 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 01 July 2015 - 05:02 PM

1. I'd assume the presetrange is the range of the spell, like the range the unit/hero has to be in to fire it, for an example sarumans fireball.

2. do you mean lotr.str?



#13 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 01 July 2015 - 05:05 PM

no, i mean what is the code that determines to see that text box with x hero has fallen


2qm3dd5.jpg


#14 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 06 July 2015 - 10:29 PM

hmm i dont know, i've never needed to create a new hero :p



#15 Valheru

Valheru

    Ashen Shugar

  • Project Team
  • 765 posts
  • Location:Australia
  • Projects:patching & see

Posted 07 July 2015 - 11:20 AM

?

 

----------------->

DeathFX                        = FX_WitchKingDieToRespawn    ;FXList to play when killed-to-respawn
ButtonImage                    = HIWitchKing_res

----------->

FXList FX_WitchKingDieToRespawn
  EvaEvent
    EvaEventOwner = WitchKingDie
    EvaEventAlly = None
  End
End

------------------------>

NewEvaEvent WitchKingDie
  Priority = 7
  TimeBetweenEventsMS = 30000   ; 30 seconds. Don't play more often than this
  ExpirationTimeMS  = 5000      ; 5 seconds.  If Eva is busy, hold the event this long before giving up
  AlwaysPlayFromHomeBase = Yes  ; Don't want voice coming from dead body

  SideSound
    Side = Isengard
    Sound = CampOrcDieWitchKing
  End
 
  SideSound
    Side = Mordor
    Sound = CampOrcDieWitchKing
  End
End

SEE_Team_Rigger.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users