Early screenshots of my first person shooter
-
- Posts: 67
- Joined: Fri Jan 23, 2004 5:04 am
-
- Posts: 67
- Joined: Fri Jan 23, 2004 5:04 am
thnx c_olin for replying!
I found CDirectX8Texture.cpp but I couldn't find the lines you tell me. I'm using version 6.0 of Irrlicht.
Are you using the same version, or is there a newer one? (or are you working with version 5 or a mod version of Irrlicht?)
sorry to be a pain, but thanx for helping.
cheers!
I found CDirectX8Texture.cpp but I couldn't find the lines you tell me. I'm using version 6.0 of Irrlicht.
Are you using the same version, or is there a newer one? (or are you working with version 5 or a mod version of Irrlicht?)
sorry to be a pain, but thanx for helping.
cheers!
-
- Posts: 24
- Joined: Sun May 16, 2004 5:53 pm
- Location: Murcia/Spain
- Contact:
-
- Posts: 67
- Joined: Fri Jan 23, 2004 5:04 am
Sorry if it sounds like I don't want to help you... but use the search button, it's the best way to find information on the board!afecelis wrote:thnx c_olin for replying!
I found CDirectX8Texture.cpp but I couldn't find the lines you tell me. I'm using version 6.0 of Irrlicht.
Are you using the same version, or is there a newer one? (or are you working with version 5 or a mod version of Irrlicht?)
sorry to be a pain, but thanx for helping.
cheers!
I did a bit of research on ode and Newton, and Newton seemed like it suited me better.
cool
Hey,
I was wondering if you are going to put the source code up, with all the files to compile too. It would be cool cause I'd love to make a fps, but I don't know how to use irrlicht to place the weapon in the right place, also finding the right models is hard too.
I got that code from another post in the forum.
Also what file type are you using for the 'world/map'? .3ds, .pk3, .bsp. If your using .3ds how do u get the collision detection done on the .3ds world?
Like I said before it would be really cool if you could release your project, there really isn't much around about FPS with Irrlicht.
Thanks
dartsman
I was wondering if you are going to put the source code up, with all the files to compile too. It would be cool cause I'd love to make a fps, but I don't know how to use irrlicht to place the weapon in the right place, also finding the right models is hard too.
Code: Select all
scene::ICameraSceneNode* camera = sm->getActiveCamera();
scene::IAnimatedMesh* weaponMesh = sm->getMesh("data/weapon.md2");
scene::IAnimatedMeshSceneNode* weaponNode = sm->addAnimatedMeshSceneNode( weaponMesh, camera, -1 );
weaponNode->setAnimationSpeed(30);
weaponNode->setScale(core::vector3df(4,4,4));
weaponNode->setPosition(core::vector3df(0,-60,0));
weaponNode->setRotation(core::vector3df(0,-90,0));
weaponNode->setFrameLoop(250, 280);
weaponNode->setMaterialFlag(video::EMF_LIGHTING, false);
weaponNode->setMaterialTexture(0, driver->getTexture("data/weapon.bmp"));
weaponNode->setMaterialType(video::EMT_SOLID_2_LAYER);
weaponNode->setAutomaticCulling(true);
Also what file type are you using for the 'world/map'? .3ds, .pk3, .bsp. If your using .3ds how do u get the collision detection done on the .3ds world?
Like I said before it would be really cool if you could release your project, there really isn't much around about FPS with Irrlicht.
Thanks
dartsman
Firstly, you would want to set the weapon model as a child of the camera.
Secondly, where the position of the weapon is depends on where the modeller of the weapon created the model. If you know about modelling, you know that they can be made at any position on the 3 planes.
"Its just a bit of trial and error" where the weapon is. Change the values until you are satisfied.
Phreak
Code: Select all
camera->addChild(weaponNode);
"Its just a bit of trial and error" where the weapon is. Change the values until you are satisfied.
Phreak
If you don't succeed, redefine success!
Hey,
I'm guessing that you have the gun firing consistantly when you hold down the Left Mouse Button. I was wondering how do get it to do that??
Like the Code that I have for my shooting is:
It only allows the player to shoot one shot, while holding down the Button.
Thanks
dartsman
I'm guessing that you have the gun firing consistantly when you hold down the Left Mouse Button. I was wondering how do get it to do that??
Like the Code that I have for my shooting is:
Code: Select all
else if( event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN )
{
Player.Shoot();
}
Thanks
dartsman
-
- Posts: 67
- Joined: Fri Jan 23, 2004 5:04 am
I won't post code, because in the long run it is a lot better to write your own code.dartsman wrote:Hey,
I'm guessing that you have the gun firing consistantly when you hold down the Left Mouse Button. I was wondering how do get it to do that??
Like the Code that I have for my shooting is:It only allows the player to shoot one shot, while holding down the Button.Code: Select all
else if( event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN ) { Player.Shoot(); }
Thanks
dartsman
But it's very simple, just think about it, there are two modes when shooting a gun, when the trigger is down, and the trigger is up. So I do a EMIE_LMOUSE_PRESSED_DOWN and make the client's variable 'trigger' as true, then do a EMIE_LMOUSE_PRESSED_UP and set 'trigger' to false. I know that's very brief, but hope it helps at least a little bit. Currently I'm rewritting my whole weapons system code, so I might post the code after that.
I am using bsp for maps and MS3Ds for weapon models (might be converting to x)
Nope, no website yet, I am actualy thinking of making it just an FPS engine rather than a game because of my terrible wirtting skills and modeling skills. So the source will be released whenever it's ready. It will hopfuly help some to understand how an fps is written and inspire some to write their own.
Thanks a lot for all of the feedback, it might be awhile until the next update