BorderLine Posted February 5, 2012 Share Posted February 5, 2012 Hi everyone someone know what function i need add to move the camera when players shoots?? I was looking about setcameramatrix, but i dont know how i can use it.. or if anyone know other function.. thanks for your time and attention Link to comment
Kenix Posted February 5, 2012 Share Posted February 5, 2012 Use explosions if player weapon fire. Link to comment
BorderLine Posted February 5, 2012 Author Share Posted February 5, 2012 thanks man look i have this local function playGunfireSound(weaponID) local muzzleX, muzzleY, muzzleZ = getPedWeaponMuzzlePosition(source) local px, py, pz = getElementPosition ( source ) if weaponID == 22 then --colt45 local sound = playSound3D("sounds/weap/Colt45.mp3", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound, 40) elseif weaponID == 25 then--shotgun local sound = playSound3D("sounds/weap/Shotgun.mp3", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound, 40) createExplosion ( px, py, pz, 12 , false , 0.5 , false ) all its good, but when i show this appear in the road how i can delete it? Link to comment
Castillo Posted February 5, 2012 Share Posted February 5, 2012 It's the explosion, you can't remove it as far as I know. Link to comment
BorderLine Posted February 5, 2012 Author Share Posted February 5, 2012 sh**t.. and how i can simulate the camera move on explosion? Link to comment
Faw[Ful] Posted February 5, 2012 Share Posted February 5, 2012 You can delete it with shader, if I'm right this explosion effect on the ground is a texture and you can replace it with an empty alpha texture. I mean a black texture with an alpha that show nothing of the textures (no pixels), a totally black alpha. If you can replace the moon texture then you can replace other textures in particle.txd too and thats cool. Link to comment
BorderLine Posted February 5, 2012 Author Share Posted February 5, 2012 Nice point benox. Well finaly i fix it with something simple like this createExplosion ( px, py, pz-20, 12 , false , 0.5 , false ) the camera move good and the exlosion its created under the ped .. so all good for now Link to comment
Kenix Posted February 5, 2012 Share Posted February 5, 2012 the camera move good and the exlosion its created under the ped .. so all good for now This not good. Benox is right.You need search texture and create alpha. https://nightly.multitheftauto.com/files/shaders/ ... _names.zip Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now