Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP43|ZP50] Item: New Jetpack & Bazooka.


Post New Thread Reply   
 
Thread Tools Display Modes
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-16-2013 , 11:43   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #21

Quote:
Originally Posted by micapat View Post
Just imagine:

fJetpackFuel[id] = 100.
CMaxFuel = 125.
CRegen = 50.

if( fJetpackFuel[id] < CMaxFuel ) --> if is ok.
> fJetpackFuel[id] += CRegen --> fJetpackFuel[id] = 150 > CMaxFuel --> Problem !
You wont feel anything with it, it was too fast. Logic. The less code = more efficient.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 11-16-2013 , 13:40   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #22

It's as you want, but this small part shouldn't hurt the execution time.
__________________
micapat is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-17-2013 , 12:48   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #23

Code Updated:
Code:
Version 0.0.2
- Use Ham_Player_Jump to hook player jump.
- Use Ham_Weapon_SecondaryAttack to hook knife secondary attack.
- Some code optimization by Connor.
- Add drop command to drop JetPack.
- Remove delay to draw flame, because you can fully disable it by using #define DrawFlame
Now what can i say is flame effect is 99.9% looks like ZmOutStanding JetPack
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 11-17-2013 at 12:50.
yokomo is offline
INst1Nct
Member
Join Date: Sep 2011
Location: Romania , Bucharest
Old 11-17-2013 , 13:19   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #24

When i shoot the rocket remain frozen in the air : http://i39.tinypic.com/2usu0t2.jpg

Qith this jetpack i can't fly forward...please fix it

And how can i add :
Code:
if (itemid == g_item_jetpack)
	{
		
		set_hudmessage(250, 159, 0, 0.31, 0.84, 1, 0.0, 4.0, 1.0, 1.0, -1)
		show_hudmessage(0, "%s bought Jetpack!!", name)

Last edited by INst1Nct; 11-17-2013 at 13:32.
INst1Nct is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-17-2013 , 14:16   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #25

Quote:
Originally Posted by INst1Nct View Post
When i shoot the rocket remain frozen in the air : http://i39.tinypic.com/2usu0t2.jpg

Qith this jetpack i can't fly forward...please fix it

And how can i add :
Code:
if (itemid == g_item_jetpack)
	{
		
		set_hudmessage(250, 159, 0, 0.31, 0.84, 1, 0.0, 4.0, 1.0, 1.0, -1)
		show_hudmessage(0, "%s bought Jetpack!!", name)
When reporting bug, please give more details about your server, meta version, amxx version, ZP version.

Prove that it works fine for me:


By the way this JP is for ZP43 only. For ZP50 you need someone to convert it for you.

To add hud message:
PHP Code:
public zp_extra_item_selected(iditem)
{
    if(
item == ItemJetPack)
    {
        if(
bHasJetPack[id])
        {
            
zp_colored_print(id"^x04[ZP]^x01 You already have this item.")
            return 
ZP_PLUGIN_HANDLED;
        }
        
        
bHasJetPack[id] = true
        zp_colored_print
(id"^x04[ZP]^x01 JetPack usage:^x04 JUMP+DUCK^x01 -- fly |^x04 SECATTACK^x01 -- shoot rocket.")
        
engclient_cmd(id"weapon_knife")
        
ReplaceModel(id)
        new 
szName[32]
        
get_user_name(idszName31)
        
set_hudmessage(127127255, -1.00.6606.06.0)
        
show_hudmessage(0"%s just bought a JetPack!"szName)
    }
    
    return 
PLUGIN_CONTINUE;

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 11-17-2013 at 14:18.
yokomo is offline
INst1Nct
Member
Join Date: Sep 2011
Location: Romania , Bucharest
Old 11-17-2013 , 14:40   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #26

I'm using amxmodx 1.8.2 with Zombie Plague Advance 1.6.1 , metamod 1.19.0.0

Meanwhile, i found that this problem appear at every new map in first round.After i've been infected and new round starts...the jetpack works properly.
INst1Nct is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-17-2013 , 15:48   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #27

No idea, maybe conflict with some plugin. But it works fine on me.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
INst1Nct
Member
Join Date: Sep 2011
Location: Romania , Bucharest
Old 11-18-2013 , 11:20   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #28

Quote:
Originally Posted by yokomo View Post
No idea, maybe conflict with some plugin. But it works fine on me.
Hey .
I discovered another bug.. : http://i39.tinypic.com/w00u2b.jpg
In that image the target was me and i were Nemesis with 80000HP ...with one rocket the other guy killed me.The rocket is blocking in my head and is taking damage till i die.


2. How can i make this to work properly?
Code:
ExecuteHamB(Ham_TakeDamage, victim, ent, attacker, damage, DMG_BULLET)
//client_print(attacker, print_chat, "[JpDebug] Rocket damage: %.1f", damage)
       set_hudmessage(127, 127, 255, -1.0, 0.66, 0, 6.0, 6.0)
       show_hudmessage(0, "%.1f")
I want to show damage only to attacker.
INst1Nct is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-18-2013 , 12:12   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #29

Quote:
Originally Posted by INst1Nct View Post
Hey .
I discovered another bug.. : http://i39.tinypic.com/w00u2b.jpg
In that image the target was me and i were Nemesis with 80000HP ...with one rocket the other guy killed me.The rocket is blocking in my head and is taking damage till i die.


2. How can i make this to work properly?
Code:
ExecuteHamB(Ham_TakeDamage, victim, ent, attacker, damage, DMG_BULLET)
//client_print(attacker, print_chat, "[JpDebug] Rocket damage: %.1f", damage)
       set_hudmessage(127, 127, 255, -1.0, 0.66, 0, 6.0, 6.0)
       show_hudmessage(0, "%.1f")
I want to show damage only to attacker.
Not related with my plugin, i've try before posting it here all works fine.
PHP Code:
       set_hudmessage(127127255, -1.00.6606.06.0)
       
show_hudmessage(attacker"%.1f"damage
This JP is replacement of weapon knife. So are you using any other plugin that increase knife damage?

If you using custom knife damage then you need to reduce the JP damage.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
INst1Nct
Member
Join Date: Sep 2011
Location: Romania , Bucharest
Old 11-18-2013 , 12:37   Re: [ZP43] New Jetpack & Bazooka
Reply With Quote #30

I'm not using anything like custom knife damage, i tried to stop some plugins to see if this plugin is in conflict with others, but the same result....
I think the problem is that the rocket is blocking in air , and if this is blocked in head it takes damage till you are dead....

I saw that when i'm shooting in the wall , the bug is not appearing but when i take damage to someone the rocket remains blocked in that point where the player was. Theese things are tested...

Last edited by INst1Nct; 11-18-2013 at 12:39.
INst1Nct 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 03:09.


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