MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / TurnOnSpew

Function TurnOnSpew

scripts/AIGame3.cpp:262–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260// ============================
261
262int TurnOnSpew(int objref, int gunpoint, int effect_type, float mass, float drag, int gravity_type, uint8_t isreal,
263 float lifetime, float interval, float longevity, float size, float speed, uint8_t random) {
264 msafe_struct mstruct;
265
266 mstruct.objhandle = objref;
267 mstruct.gunpoint = gunpoint;
268 mstruct.effect_type = effect_type;
269 mstruct.mass = mass;
270 mstruct.drag = drag;
271 mstruct.phys_info = gravity_type;
272 mstruct.is_real = isreal;
273 mstruct.lifetime = lifetime;
274 mstruct.interval = interval;
275 mstruct.longevity = longevity;
276 mstruct.size = size;
277 mstruct.speed = speed;
278 mstruct.random = (random) ? SPEW_RAND_SIZE | SPEW_RAND_LIFETIME | SPEW_RAND_SPEED : 0;
279
280 MSafe_CallFunction(MSAFE_OBJECT_START_SPEW, &mstruct);
281
282 return mstruct.id;
283}
284
285// Returns the new child's handle
286int CreateAndAttach(int me, const char *child_name, uint8_t child_type, char parent_ap, char child_ap, bool f_aligned,

Callers 2

LaunchGrenadeMethod · 0.70
DoFrameMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected