combat system and aggro

Discussions on various DOL development features

Moderator: Support Team

combat system and aggro

Postby duff » Thu Jan 22, 2004 3:20 pm

i have think to aggro system in fact in the dolplayer.cs you have a hiplayers hashtable who store player who hit the mob and the life they remove from the mob but it can be translate in an playeraggro hashtable with player and aggro of player so debuff and other spell can change the aggro value and when it change aggro value we can put in the set of the arraylist playerAggro a calculaggro function witch select the player with the most aggro and attack hiw so basic AI is done ;)
Vive DOL vive DAOC
Image
membre de MatrixTC :mappeur,codeur :) plus d info:http://www.halflifedesign.net
User avatar
duff
Inactive Staff Member
 
Posts: 1682
Joined: Fri Jun 20, 2003 5:27 pm

Postby Blue » Thu Jan 22, 2004 3:51 pm

My aggrofunction is ready but not tested. Its not in the cvs yet, but exists. The right place will be ComputeAI. Wait next week.
Whats in is what you described, the mob will attack the player that done the most damage to it. The damage/aggro could be lowered with spells, so the mob "forgets" what you have done.
ex DOL Lead Developer
Blue
Uthgard Admin
 
Posts: 961
Joined: Wed Jan 21, 2004 11:07 pm
ICQ: 63977313

Postby Nxs » Sun Jan 25, 2004 10:43 pm

Aye ideas on what is being added to the mob database to cope with combat ?

like...
Type - Agro, Hostile, Neutral
Agro% - chance that mob will agro you if set to agro
AgroRange - radius of agro range (some mobs dont agro until you get closer)
Nxs
DOL Novice
 
Posts: 53
Joined: Tue Jan 06, 2004 4:33 pm

Postby duff » Mon Jan 26, 2004 9:17 am

not agry for type i think the better is to put faction and the plaer will have to store the faction friendly percent and if
friendly in a faction is <33% aggro if >33 but <66 hostil >66 neutral and the friendly of aggro change with dead of mob
Vive DOL vive DAOC
Image
membre de MatrixTC :mappeur,codeur :) plus d info:http://www.halflifedesign.net
User avatar
duff
Inactive Staff Member
 
Posts: 1682
Joined: Fri Jun 20, 2003 5:27 pm

Postby Nxs » Mon Jan 26, 2004 1:12 pm

Yes but not all mob have factions and some mobs are always agro

Maybe combine faction/agro in one field ?
Nxs
DOL Novice
 
Posts: 53
Joined: Tue Jan 06, 2004 4:33 pm

Postby duff » Mon Jan 26, 2004 2:09 pm

just to put some special faction and when you kill the mob nothing done with the faction
i mean :
enum faction
{
faction1,
faction2,
faction3,
faction4,
specialfaction,
}
and when a mob is killed we have just to check

if enumfaction<5
you get friendly with faction "faction1" and enemy on...
and else nothing...
Vive DOL vive DAOC
Image
membre de MatrixTC :mappeur,codeur :) plus d info:http://www.halflifedesign.net
User avatar
duff
Inactive Staff Member
 
Posts: 1682
Joined: Fri Jun 20, 2003 5:27 pm

Postby Nxs » Mon Jan 26, 2004 4:48 pm

some mobs are ALWAYS agro
some mobs are ALWAYS neutral

can your example work with that ?

eg. Dragon is always agressive
eg. starting mobs L1-L4 are always neutral
Nxs
DOL Novice
 
Posts: 53
Joined: Tue Jan 06, 2004 4:33 pm


Return to “%s” DOL Development Discussion

Who is online

Users browsing this forum: No registered users and 1 guest