BorderLine Posted February 5, 2012 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Kenix Posted February 5, 2012 Posted February 5, 2012 Use explosions if player weapon fire. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
BorderLine Posted February 5, 2012 Author 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? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Castillo Posted February 5, 2012 Posted February 5, 2012 It's the explosion, you can't remove it as far as I know. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BorderLine Posted February 5, 2012 Author Posted February 5, 2012 sh**t.. and how i can simulate the camera move on explosion? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Faw[Ful] Posted February 5, 2012 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. =Benox50= My Youtube Channel
BorderLine Posted February 5, 2012 Author 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Kenix Posted February 5, 2012 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 http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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