| 260 | // ============================ |
| 261 | |
| 262 | int 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 |
| 286 | int CreateAndAttach(int me, const char *child_name, uint8_t child_type, char parent_ap, char child_ap, bool f_aligned, |
no outgoing calls
no test coverage detected