| 308 | } |
| 309 | |
| 310 | void G_DropKey( gentity_t *self ) |
| 311 | {//drop whatever security key I was holding |
| 312 | gitem_t *item = NULL; |
| 313 | if ( !Q_stricmp( "goodie", self->message ) ) |
| 314 | { |
| 315 | item = FindItemForInventory( INV_GOODIE_KEY ); |
| 316 | } |
| 317 | else |
| 318 | { |
| 319 | item = FindItemForInventory( INV_SECURITY_KEY ); |
| 320 | } |
| 321 | gentity_t *dropped = Drop_Item( self, item, 0, qtrue ); |
| 322 | //Don't throw the key |
| 323 | VectorClear( dropped->s.pos.trDelta ); |
| 324 | dropped->message = self->message; |
| 325 | self->message = NULL; |
| 326 | } |
| 327 | |
| 328 | void ObjectDie (gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath ) |
| 329 | { |
no test coverage detected