Has any made a mod where monsters only go after players only, in invasion??? I notice on my server sometimes the fight among themselves sometimes.
Announcement
Collapse
No announcement yet.
Invasion question
Collapse
X
-
In the monsters "code" you have to tell them (the monsters) who their friends are...
in other words you have to tell them not to attack other "monsters"...
when you see monsters fighting each other it means they don't "recognize" the other monsters as allies....
With the number of custom monsters out there it can be very difficult to take them all into account in the code......
Comment
-
Code:bNewMonsterEnemy = bHateMonster && (Level.Game.NumPlayers < 4) && !Monster(Pawn).SameSpeciesAs(NewEnemy) && !NewEnemy.Controller.bIsPlayer; if ( !NewEnemy.Controller.bIsPlayer && !bNewMonsterEnemy ) return false;
- Monster was shot by the attacker.
- Theres lesser than 4 players in the server.
- Monster is not same "species" as the attacker.
Or if attacker is player controlled.
Thats the default UT2004 behaviour, however custom mods may override that.
Comment
Comment