Lines Matching refs:shotData

259 	if (shotData)  in fire()
261 if (!shotData->firePrt.empty()) in fire()
263 dsq->spawnParticleEffect(shotData->firePrt, position); in fire()
268 if (!shotData->fireSfx.empty() && playSfx) in fire()
270 dsq->playPositionalSfx(shotData->fireSfx, position); in fire()
285 shotData = 0; in Shot()
299 ShotData shotData; in loadShotCallback() local
306 shotData.bankLoad(ident, Shot::shotBankPath); in loadShotCallback()
307 Shot::shotBank[ident] = shotData; in loadShotCallback()
331 (*i)->shotData = 0; in clearShotBank()
353 void Shot::applyShotData(ShotData *shotData) in applyShotData() argument
355 if (shotData) in applyShotData()
357 this->shotData = shotData; in applyShotData()
358 this->setBlendType(shotData->blendType); in applyShotData()
359 this->homingness = shotData->homing; in applyShotData()
360 this->maxSpeed = shotData->maxSpeed; in applyShotData()
361 this->setTexture(shotData->texture); in applyShotData()
362 this->scale = shotData->scale; in applyShotData()
363 this->lifeTime = shotData->lifeTime; in applyShotData()
364 this->collideRadius = shotData->collideRadius; in applyShotData()
365 this->renderQuad = !shotData->invisible; in applyShotData()
366 this->gravity = shotData->gravity; in applyShotData()
367 this->damageType = shotData->damageType; in applyShotData()
368 this->checkDamageTarget = shotData->checkDamageTarget; in applyShotData()
369 if (!shotData->trailPrt.empty()) in applyShotData()
371 setParticleEffect(shotData->trailPrt); in applyShotData()
374 if (shotData->numSegs > 0) in applyShotData()
376 segments.resize(shotData->numSegs); in applyShotData()
380 flame->setTexture(shotData->segTexture); in applyShotData()
381 flame->scale = shotData->segScale - Vector(shotData->segTaper, shotData->segTaper)*(i); in applyShotData()
389 maxDist = shotData->segDist; in applyShotData()
447 if (shotData) in doHitEffects()
449 if (!shotData->hitPrt.empty()) in doHitEffects()
450 dsq->spawnParticleEffect(shotData->hitPrt, position); in doHitEffects()
451 if (!shotData->hitSfx.empty()) in doHitEffects()
452 dsq->playPositionalSfx(shotData->hitSfx, position); in doHitEffects()
468 if (shotData) in onHitWall()
470 if (!shotData->spawnEntity.empty()) in onHitWall()
472 dsq->game->createEntity(shotData->spawnEntity, 0, position, 0, false, "", ET_ENEMY, true); in onHitWall()
474 if (shotData->spawnEntity == "NatureFormFlowers") in onHitWall()
554 if (!shotData || shotData->hitEnts) in isHitEnts()
577 if (shotData) in hitEntity()
578 d.effectTime = shotData->effectTime; in hitEntity()
595 if (shotData) in hitEntity()
597 if (!damaged && checkDamageTarget && !shotData->alwaysDoHitEffects) in hitEntity()
605 die = shotData ? shotData->dieOnKill : false; in hitEntity()
626 if ((!shotData || shotData->dieOnHit) && die) in hitEntity()
656 if (shotData) in getCollideRadius()
657 return shotData->collideRadius; in getCollideRadius()
663 if (shotData) in getDamage()
665 return shotData->damage + extraDamage; in getDamage()
678 if (shotData) in setAimVector()
680 velocity.setLength2D(shotData->maxSpeed); in setAimVector()
701 if (shotData->wallHitRadius == 0) in isObstructed()
713 if (dsq->game->collideCircleWithGrid(position, shotData->wallHitRadius)) in isObstructed()
726 if (!shotData) return; in onUpdate()
761 homingness += shotData->homingIncr*dt; in onUpdate()
762 if (shotData->homingMax != 0 && homingness > shotData->homingMax) in onUpdate()
764 homingness = shotData->homingMax; in onUpdate()
767 if (shotData->waveMag) in onUpdate()
769 waveTimer += shotData->waveSpeed * dt; in onUpdate()
770 float off = sinf(waveTimer)*shotData->waveMag; in onUpdate()
776 if (shotData->rotIncr) in onUpdate()
779 add.setLength2D(shotData->rotIncr); in onUpdate()
822 if (shotData->hitWalls) in onUpdate()
826 switch(shotData->bounceType) in onUpdate()
837 if (!shotData->bounceSfx.empty()) in onUpdate()
839 dsq->playPositionalSfx(shotData->bounceSfx, position); in onUpdate()
840 if(!shotData->bouncePrt.empty()) in onUpdate()
841 dsq->spawnParticleEffect(shotData->bouncePrt, position); in onUpdate()
876 if (shotData->spinSpeed != 0) in onUpdate()
880 rotation.z += shotData->spinSpeed*dt; in onUpdate()
884 rotation.z -= shotData->spinSpeed*dt; in onUpdate()
889 if (shotData->rotateToVel) in onUpdate()