This commit is contained in:
parent
a5760229be
commit
d1340ad504
1 changed files with 4 additions and 0 deletions
|
@ -188,12 +188,16 @@ void CPlayerModeNet::think()
|
||||||
|
|
||||||
|
|
||||||
projectile = new( "user projectile" ) CPlayerProjectile;
|
projectile = new( "user projectile" ) CPlayerProjectile;
|
||||||
|
|
||||||
projectile->init( launchPos,
|
projectile->init( launchPos,
|
||||||
fireHeading,
|
fireHeading,
|
||||||
CPlayerProjectile::PLAYER_PROJECTILE_DUMBFIRE,
|
CPlayerProjectile::PLAYER_PROJECTILE_DUMBFIRE,
|
||||||
CPlayerProjectile::PLAYER_PROJECTILE_FINITE_LIFE,
|
CPlayerProjectile::PLAYER_PROJECTILE_FINITE_LIFE,
|
||||||
5*60);
|
5*60);
|
||||||
projectile->setLayerCollision( m_player->getLayerCollision() );
|
projectile->setLayerCollision( m_player->getLayerCollision() );
|
||||||
|
projectile->updateCollisionArea();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
m_netState=NET_STATE__JUST_LAUNCHED_SOMETHING;
|
m_netState=NET_STATE__JUST_LAUNCHED_SOMETHING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue