I started this thread to post anything i found out while creating OP2 DLL's. Of course anybody can post additional findings here ! :D
So far; i've got these additions to Outpost2DLL.h:
Following replaces the existing PatrolRoute structure:
struct OP2 PatrolRoute {
int unknown1;
LOCATION *waypoints;
int unknown[10];
};
Go to orignal posting (http://forum.outpostuniverse.net/index.php?act=ST&f=5&t=797&hl=outpost2dll\.h&view=findpost&p=26944)
Following replaces the existing trig_res enum definition:
enum trig_res {
res_food = 0,
res_common_ore,
res_rare_ore,
res_kids,
res_workers,
res_scientists,
res_colonists
};
Go to orignal posting (http://forum.outpostuniverse.net/index.php?act=ST&f=5&t=797&hl=outpost2dll\.h&view=findpost&p=26941)
This is something i found out today:
// Damage Types
#define damage_100 1
#define damage_75 2
#define damage_50 3
Use these definitions for the 4th parameter of CreateDamagedTrigger. Setting it to 1 (or damage_100) will generate a trigger when 100% of the fightgroup is destroyed. damage_75 will trigger at 75% and damage_50 at 50% destroyed. Don't use any other values; 0 will not trigger at all, anything larger than 3 will trigger always !