I need to hand in my game to tommorow so plz replay as soon as you can, and plz make it simple to understand
here is my code:
if ( dbMouseClick() == 1 )
{
dbPlaySound(83);
ShootBullet();
for( int i=10002; i <= 10040; i++ )
{
dbMakeObjectPlain( i,3,3 );
//texture object i,7
dbSetObjectLight( i,0 );
dbHideObject( i );
}
int counter = 10002;
int igroup = 0;
char group [ 32 ] = "all groups";
int collide = 0;
int toggletext = 0;
//get our collision vector
float oldx = dbCameraPositionX();
float oldy = dbCameraPositionY();
float oldz = dbCameraPositionZ();
dbMoveCamera( 2000 );
float x = dbCameraPositionX();
float y = dbCameraPositionY();
float z = dbCameraPositionZ();
dbMoveCamera( -2000 );
if ( collide > 0 )
{
//get the collision point
float newx = SC_GetStaticCollisionX() ;
float newy = SC_GetStaticCollisionY();
float newz = SC_GetStaticCollisionZ();
//get collision normal
float normx = SC_GetCollisionNormalX();
float normy = SC_GetCollisionNormalY();
float normz = SC_GetCollisionNormalZ();
//position and point a marker in the right direction
dbPositionObject( counter, newx + normx/10.0f, newy + normy/10.0f, newz + normz/10.0f );
dbPointObject( counter, newx + normx, newy + normy, newz + normz );
dbShowObject( counter );
counter++;
if ( counter > 10040 ) counter = 10002;
}
}
Can you guys tell me how can I replace them with the bullet holes found in the FPS creator folder