Raised This Month: $ Target: $400
 0% 

ZP Bazooka kill bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strangeguy
Senior Member
Join Date: Mar 2019
Old 09-20-2023 , 11:35   ZP Bazooka kill bug
Reply With Quote #1

Hello!

I have problem with bazooka new modes 1.6 in my zombie plague 5.0.8. When I'm shooting my rocket, the rocket doesn't disappear when it touch the zombie or walls. It want to kill zombie to 0hp and then disappears. Someone can help me?

Code:
L 09/20/2023 - 17:30:08: [AMXX] Displaying debug trace (plugin "zp_bazooka_new.amxx")
L 09/20/2023 - 17:30:08: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/20/2023 - 17:30:08: [AMXX]    [0] zp_bazooka_new.sma::baz_damage (line 557)
L 09/20/2023 - 17:30:08: [AMXX]    [1] zp_bazooka_new.sma::fw_touch (line 431)
Attached Files
File Type: sma Get Plugin or Get Source (zp_bazooka_new.sma - 74 views - 22.2 KB)

Last edited by strangeguy; 09-20-2023 at 14:37.
strangeguy is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 09-20-2023 , 16:43   Re: ZP Bazooka kill bug
Reply With Quote #2

wrong section but nvm
try this
i just edited: (line 557-566)
Code:
	//new breaker = get_pcvar_num(pcvar_dmgforpacks);
	
	if ( dmgcount[attacker] > pcvar_dmgforpacks )// breaker )
	{
		new temp = dmgcount[attacker] / pcvar_dmgforpacks//breaker
		//if ( temp * breaker > dmgcount[attacker] ) return; //should never be possible
		if ( temp * pcvar_dmgforpacks > dmgcount[attacker] ) return; //should never be possiblepcvar_dmgforpacks
		dmgcount[attacker] -= temp * pcvar_dmgforpacks;//breaker;
		zp_set_user_ammo_packs( attacker, zp_get_user_ammo_packs(attacker) + temp );
	}
Attached Files
File Type: sma Get Plugin or Get Source (zp_bazooka_new.sma - 38 views - 22.4 KB)
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
strangeguy
Senior Member
Join Date: Mar 2019
Old 09-21-2023 , 03:54   Re: ZP Bazooka kill bug
Reply With Quote #3

Quote:
Originally Posted by Mo3taz View Post
wrong section but nvm
try this
i just edited: (line 557-566)
Code:
	//new breaker = get_pcvar_num(pcvar_dmgforpacks);
	
	if ( dmgcount[attacker] > pcvar_dmgforpacks )// breaker )
	{
		new temp = dmgcount[attacker] / pcvar_dmgforpacks//breaker
		//if ( temp * breaker > dmgcount[attacker] ) return; //should never be possible
		if ( temp * pcvar_dmgforpacks > dmgcount[attacker] ) return; //should never be possiblepcvar_dmgforpacks
		dmgcount[attacker] -= temp * pcvar_dmgforpacks;//breaker;
		zp_set_user_ammo_packs( attacker, zp_get_user_ammo_packs(attacker) + temp );
	}
Thank you for help, but the plugin is still making errors. Maybe it's my zombie plague version problem? But I saw many server's 5.0.8 with that bazooka, I don't know what's wrong..

Code:
L 09/21/2023 - 09:50:40: [AMXX]    [0] zp_bazooka_new.sma::baz_damage (line 557)
L 09/21/2023 - 09:50:40: [AMXX]    [1] zp_bazooka_new.sma::fw_touch (line 431)
L 09/21/2023 - 09:50:40: Invalid CVAR pointer
L 09/21/2023 - 09:50:40: [AMXX] Displaying debug trace (plugin "zp_bazooka_new.amxx")
L 09/21/2023 - 09:50:40: [AMXX] Run time error 10: native error (native "get_pcvar_num")
strangeguy is offline
strangeguy
Senior Member
Join Date: Mar 2019
Old 09-21-2023 , 04:28   Re: ZP Bazooka kill bug
Reply With Quote #4

Okey nevermind I found working bazooka plugin on the internet. But thank you for your help!
strangeguy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode