Fix missing onspawn execution for knives, bombs stars, and steam.
@@ -32669,6 +32669,10 @@ entity *knife_spawn(char *name, int index, float x, float z, float a, int direct
e->modeldata.subject_to_wall = e->modeldata.subject_to_platform = e->modeldata.subject_to_hole = e->modeldata.subject_to_gravity = 1;
e->modeldata.no_adjust_base = 1;
+
+ // Execute the projectile's on spawn event.
+ execute_onspawn_script(e);
+
return e;
}
@@ -32756,6 +32760,10 @@ entity *bomb_spawn(char *name, int index, float x, float z, float a, int directi
}
e->modeldata.no_adjust_base = 0;
e->modeldata.subject_to_basemap = e->modeldata.subject_to_wall = e->modeldata.subject_to_platform = e->modeldata.subject_to_hole = e->modeldata.subject_to_gravity = 1;
+
+ // Execute the projectile's on spawn event.
+ execute_onspawn_script(e);
+
return e;
}
@@ -32838,6 +32846,9 @@ int star_spawn(float x, float z, float a, int direction) // added entity to kno
e->modeldata.no_adjust_base = 0;
e->spawntype = SPAWN_TYPE_PROJECTILE_STAR;
+
+ // Execute the projectile's on spawn event.
+ execute_onspawn_script(e);
}
return 1;
}
@@ -32883,6 +32894,9 @@ void steam_spawn(float x, float z, float a)
e->base = a;
e->modeldata.no_adjust_base = 1;
e->think = steam_think;
+
+ // Execute the steams's on spawn event.
+ execute_onspawn_script(e);
}
