Enemy Bomb Hitboxes are ignored

This enemy (gunguyg) throws bomb that no longer damage the player when using 4.0 Build 7555.

Attached are the enemy, bomb and model text files
We need more details, like the tosser script you are using.

And did you try to use the legacy attack box to see if it works?

1776047670532.png
 
I will try legacy hitboxes, below is tosser script


C:
void tosser(void Bomb, float dx, float dy, float dz, float Vx, float Vy, float Vz)
{
    void self = getlocalvar("self");
    int Direction = getentityproperty(self, "direction");
    int x = getentityproperty(self, "x");
    int y = getentityproperty(self, "a");
    int z = getentityproperty(self, "z");
    if (!Direction){
        dx=-dx;
    }else{}
    void Shot = projectile(Bomb, x+dx, z+dz, y+dy, Direction, 0, 1, 0);
    changeentityproperty(Shot, "parent", self);
    tossentity(Shot, Vy, Vx, Vz);
    changeentityproperty(Shot, "speed", Vx);
    changeentityproperty(Shot, "hostile", getentityproperty(self, "hostile")+openborconstant("TYPE_RESERVED"));
    changeentityproperty(Shot, "candamage", getentityproperty(self, "candamage")+openborconstant("TYPE_RESERVED"));
}
 
I will try legacy hitboxes, below is tosser script
Ok, no problem.
About the script, try to change the candamage property in some ways:

1) Test using it at the projectile header

2) Test using it with a direct candamage entity type, like

changeentityproperty(Shot, "candamage", openborconstant("TYPE_ENEMY"));
or
changeentityproperty(Shot, "candamage", "type_enemy");

3) Try to remove the "type_reserved" text.

changeentityproperty(Shot, "candamage", getentityproperty(self, "candamage"));
 
Back
Top Bottom