I don't know if I'm posting in the right area or I know asking right, but I'm new here and I wanted to know something.
How do I add specific sounds to zombies? For example
The zombie from Counter Strike Nexon the girl, with every shot she gives her she makes a girl's pain sound (Obviously) and when she gets infected she also screams, I wanted to know how I can do this in the zombie plague, I started a class I got a base and I'm trying if they can help me ... (I don't know much about Pawn, but I'm quick to learn: D)
you have to use FM_EmitSound and a variable to check if that's the class you want to add a specific sound. if you're using zombie plague mod, then the variable you are looking is g_zombieclass[33]. In EmitSound public function you have to check if g_zombieclass equals to the number of the class you want to add specific sound for ex. if(g_zombieclass[ id ] == 1(or what number is your class)) and then you use emit_sound(id, ...)
Last Edit: Feb 29, 2020 22:06:47 GMT by dragonheart
Look I tried in two ways one being in the face without shamelessness I took a standard class there from the net and tried to add sound already in the .SMA in the class. (Yes, I am brazilian)
public Pain_sound(id) { client_cmd(id, "spk %s", PAIN_SOUND) } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par } */
The '' Risada( Laughter) '' part is when the smoker is infected when he emits the sound ''Risada (Laughter) ''
The one I’m trying to do is separate from the +/- classes as a plugin that to change the sounds has to change the INI I took from a post at Alie and tried to do
if that’s the case you need to use native of zombie plague “zp_get_user_class” to check if the zombie class is smoker, if not don’t play sound as i understood. Then you need to use also zp_user_infected_post forward from zp to check if user got infected. so basically it should look something like: public zp_user_infected_post(id) { if(zp_get_user_zombie_class(id) == g_zclasse) emit_sound... }
Post by Abhinash ( Bboy NeO ) on Mar 3, 2020 5:10:49 GMT
Inside your class plugin register the damage event, add and precache the sound and add you pain sound function. Inside your pain sound function check if the victim is your g_zclass then emit the sound. Use emit sound instead you spk.
Working on a very big AMXX project. Interested and Experienced peoples can contact me. My Facebook = Abhinash Behuria Phone number = 07686091154
Inside your class plugin register the damage event, add and precache the sound and add you pain sound function. Inside your pain sound function check if the victim is your g_zclass then emit the sound. Use emit sound instead you spk.
Inside your class plugin register the damage event, add and precache the sound and add you pain sound function. Inside your pain sound function check if the victim is your g_zclass then emit the sound. Use emit sound instead you spk.
Really nigga?
Haters gonna hate. Fuck off you piece of shit. You are just a kid and nothing else
Working on a very big AMXX project. Interested and Experienced peoples can contact me. My Facebook = Abhinash Behuria Phone number = 07686091154
I think you’re cool, don’t care about him, I like the things you did and you know a lot about CS in my view, don’t care about this guy, even though I didn’t understand anything (because I don’t know much about programming) you are helping me, don't care about him.
omggg omggggg look at this great LOVE between a DUMB and an ASSHOLE. Dude you seem like a beginner to this stuff. If he is helping you, that means your requests are easy to do. And just because he is helping you you dont need to be his lawyer HAHAHHAHA
omggg omggggg look at this great LOVE between a DUMB and an ASSHOLE. Dude you seem like a beginner to this stuff. If he is helping you, that means your requests are easy to do. And just because he is helping you you dont need to be his lawyer HAHAHHAHA
Lets ignore those guy
Working on a very big AMXX project. Interested and Experienced peoples can contact me. My Facebook = Abhinash Behuria Phone number = 07686091154