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

gungame question


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-01-2009 , 21:21   Re: gungame question
Reply With Quote #11

Thanks Avalanche.

I'm pretty sure this fixed the "spawn glitch." On the original plugin my bots just about always glitched but now none do!

Sweet Deal.

Last edited by fysiks; 02-01-2009 at 22:33. Reason: Added my results of "fixed" plugin.
fysiks is online now
sgtfrog
Junior Member
Join Date: Jan 2009
Old 02-02-2009 , 00:59   Re: gungame question
Reply With Quote #12

Thank you for fixing the biggest glitch but there still is 1 more that if you could fix that would be awesome whenever u do a secondary attack and kill someone the next bullet if it kills will steal a level and give you a level.
sgtfrog is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-02-2009 , 22:44   Re: gungame question
Reply With Quote #13

sgtfrog: So you bayonet kill someone and get a level steal. Then if you shoot someone else immediately afterwards it also counts as a level steal?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-04-2009 , 04:17   Re: gungame question
Reply With Quote #14

Quote:
Originally Posted by XxAvalanchexX View Post
fysiks: You're correct about all of that ResetHUD stuff. Ham_Spawn is the best way. I didn't even realize that I used ResetHUD for the DoD GG.

sgtfrog: Try this version and see if it fixes that bug. It just changes the spawn detection method from ResetHUD to Ham_Spawn as fysiks suggested.
It seems that Ham_Spawn is called once before the user is connected causing a runtime error (10). I added each of the following (separately) as the first thing in the ham_player_spawn and both worked:

Code:
if(!is_user_connected(id)) return;
Code:
if(!is_user_alive(id)) return;
And, I must assume that the latter is the better choice.


Also, line 1907-1909, I do not have those in my ResetHUD version.

Code:
 // DOD
 if(wId == DODW_HANDGRENADE || wId == DODW_STICKGRENADE || wId == DODW_MILLS_BOMB)
  dod_set_user_ammo(id,wId,0);
I don't know how stupid this question is but is the essential? I've never noticed anything having to do with grenades before.

Last edited by fysiks; 02-04-2009 at 06:44. Reason: Solved question
fysiks is online now
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-05-2009 , 23:00   Re: gungame question
Reply With Quote #15

You can go ahead and use only !is_user_alive, since it will also do a connection check (and will not throw any errors if the user is not connected). For the ammo thing, I'm not sure that it's essential, but it's recommended. It's possible that otherwise it would leave you backpack ammo for the grenade, then take it away. Then if you pick up another grenade it would add to the amount that you had earlier. Maybe. So that's what that line is for.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
sgtfrog
Junior Member
Join Date: Jan 2009
Old 02-05-2009 , 23:38   Re: gungame question
Reply With Quote #16

One other I found if you go past mg42(idk why this wep) lose a level by knife and then kill up on the second kill you get stuck on the mg42 untill you die or cap a flag it's the last mg in the gun order for me you don't need to be deployed to make this work it's odd.
sgtfrog is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-05-2009 , 23:58   Re: gungame question
Reply With Quote #17

sgtfrog:
Quote:
Originally Posted by XxAvalanchexX View Post
sgtfrog: So you bayonet kill someone and get a level steal. Then if you shoot someone else immediately afterwards it also counts as a level steal?
Is this correct?

Also, does that MG42 bug always happen in those circumstances, or just sometimes? Have you tried swapping the position with another MG (ie: swap mg42 and 30cal in your weapon order) and see how that effects it?

Sorry that I don't have much time to delve into these problems.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-08-2009 , 11:30   Re: gungame question
Reply With Quote #18

Quote:
Originally Posted by XxAvalanchexX View Post
sgtfrog:
Quote:
Originally Posted by XxAvalanchexX View Post
sgtfrog: So you bayonet kill someone and get a level steal. Then if you shoot someone else immediately afterwards it also counts as a level steal?
Is this correct?
Yes, if you kill them, you get the level steal.
fysiks is online now
noddy
Junior Member
Join Date: Oct 2006
Old 02-09-2009 , 04:37   Re: gungame question
Reply With Quote #19

@ fysiks

could you please post full code with
Code:
if(!is_user_alive(id)) return;
included please
noddy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-11-2009 , 22:36   Re: gungame question
Reply With Quote #20

Attached is Avalanche's code from earlier in this topic with the addition of:

Code:
 
if(!is_user_alive(id)) return;
in the ham_player_spawn function.

And as always, make a backup just in case .
Attached Files
File Type: sma Get Plugin or Get Source (gungame_dod.sma - 394 views - 57.1 KB)
fysiks is online now
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 14:42.


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