Raised This Month: $7 Target: $400
 1% 

[L4D] Achievement Notifier


Post New Thread Reply   
 
Thread Tools Display Modes
Vicious Angel
New Member
Join Date: Jan 2009
Old 01-19-2009 , 14:51   Re: [L4D] Achievement Notifier
Reply With Quote #21

I had a closer look to your code and i think this fonction is not working :

PHP Code:
public OnRoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
isMapTransition true;

I think it's not going into the function so the variable isMapTransition is still false instead of being true.

The thing is i dunno if it's caused by the sourcemod 1.2.0.2534 version or if it's not the proper function called ?
Vicious Angel is offline
blah604
New Member
Join Date: Jan 2009
Old 01-20-2009 , 21:02   Re: [L4D] Achievement Notifier
Reply With Quote #22

so not all the achievement can be achieved by this.
blah604 is offline
omadhaun
Junior Member
Join Date: Jan 2009
Old 01-20-2009 , 21:06   Re: [L4D] Achievement Notifier
Reply With Quote #23

Currently, it is designed to notify the players running a campaign regarding which achievements are currently possible based on their actions to that point.

However, this version only notifies players about the following achievement's status:
Safety First
Untouchables
Stomach Upset
omadhaun is offline
blah604
New Member
Join Date: Jan 2009
Old 01-20-2009 , 23:26   Re: [L4D] Achievement Notifier
Reply With Quote #24

Quote:
Originally Posted by omadhaun View Post
Currently, it is designed to notify the players running a campaign regarding which achievements are currently possible based on their actions to that point.

However, this version only notifies players about the following achievement's status:
Safety First
Untouchables
Stomach Upset
like the HUD? on tf2? i thought this helps you get the achievement w/o doing it just type !achievements
blah604 is offline
omadhaun
Junior Member
Join Date: Jan 2009
Old 01-22-2009 , 23:30   Re: [L4D] Achievement Notifier
Reply With Quote #25

Yes, it is similar to the TF2's HUD in the sense that you can see which of the selected achievements are possible at any moment during a campaign on a server running this plug-in.

Unfortunately it doesn't keep the cheev status on the screen at all times. It notifies you when a cheev is no longer possible, and when manually called up using the "!achievements" say command.
omadhaun is offline
ApocalypseDan
Member
Join Date: Jan 2009
Old 01-25-2009 , 10:05   Re: [L4D] Achievement Notifier
Reply With Quote #26

Just to let you know When you enter a safe room the Safety first achievment becomes unobtainable but it dose not mean any one has shot any one.
Great pluging though many thanks
__________________
ApocalypseDan is offline
omadhaun
Junior Member
Join Date: Jan 2009
Old 01-26-2009 , 22:05   Re: [L4D] Achievement Notifier
Reply With Quote #27

Quote:
Originally Posted by ApocalypseDan View Post
Just to let you know When you enter a safe room the Safety first achievment becomes unobtainable but it dose not mean any one has shot any one.
Great pluging though many thanks
Yes, this also affects Stomach Upset. Something is not working in the code with the "isMapTransition" or so it seems.
omadhaun is offline
Vicious Angel
New Member
Join Date: Jan 2009
Old 01-31-2009 , 07:00   Re: [L4D] Achievement Notifier
Reply With Quote #28

I found out what was the problem. Each new round the plugin is executed 2 times (certainly due to L4D itself). The direct consequence to this is that instead of being TRUE, isMapTransition is FALSE.

The solution i found is to use an integer counter rather than a boolean.

I've attached my corrected plugin. It works
Attached Files
File Type: sp Get Plugin or Get Source (achievementnotifier.sp - 682 views - 8.5 KB)
Vicious Angel is offline
rennex
New Member
Join Date: Feb 2009
Old 02-04-2009 , 20:54   Re: [L4D] Achievement Notifier
Reply With Quote #29

Quote:
Originally Posted by Vicious Angel View Post
I've attached my corrected plugin. It works
Looks like your code sets EndRoundCounter to zero whenever any vote passes (line 221). You can remove that line, since ResetAllAchievements() is called if the vote was to restart the campaign.

I can't comment on the other changes, I'll take your word that they work

Fexii: we want Nothing Special! Please hurry
rennex is offline
Wild1234
Junior Member
Join Date: Oct 2007
Old 03-07-2009 , 18:01   Re: [L4D] Achievement Notifier
Reply With Quote #30

Quote:
Originally Posted by rennex View Post
Looks like your code sets EndRoundCounter to zero whenever any vote passes (line 221). You can remove that line, since ResetAllAchievements() is called if the vote was to restart the campaign.

I can't comment on the other changes, I'll take your word that they work

Fexii: we want Nothing Special! Please hurry
Well, here is a little attempt I made to make it track nothing special. Don't think it will count an attack from a witch as she oddly seems to count the same as being hit by a normal zombie on the player_hurt event. But if you don't notice when she hits you, you have more problems than just trying to get that achievement

Seems to work from the testing I've done so far, hopefully somebody will find this useful.
Attached Files
File Type: sp Get Plugin or Get Source (achievementnotifier2.sp - 541 views - 9.4 KB)
Wild1234 is offline
Reply


Thread Tools
Display Modes

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 00:21.


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