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

[L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Plugin ID:
4121
Plugin Version:
1.5.3
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
70 
Plugin Description:
Replacements for the SourceMod Basic Votes plugin for use with the NativeVotes Voting API
Old 03-05-2014 , 20:24   [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #1

Requirements:
Left 4 Dead, Left 4 Dead 2, Team Fortress 2, or CS:GO
SourceMod 1.5.0 or newer
NativeVotes 0.8.1 or newer, 1.0.0 (will be) recommended (once it's done)

Conflicts:
SourceMod Basic Votes (basicvotes.smx)

Description:
This is, literally, a drop-in replacement for the SourceMod Basic Votes plugin (basevotes.smx), with the Menu-related code replaced with NativeVotes vote-related code. Note: It does not remove basevotes.smx, you need to do that yourself.

If NativeVotes is not available (at all or for a specific vote type), this plugin falls back to the SourceMod vote system.

The major difference from the standard votes is that NativeVotes Basic Votes uses the F1-F5 keys for voting instead of 1-5

Changelog
  • 1.5.3
    • Kick votes were always passing, even when No votes outweighed yes votes. This is now fixed.
    • Translations for vote titles weren't always working. This should be fixed.
  • 1.5.2
    • Initial Public Release, based on Basic Votes 1.5.2

Known Bugs:
See: NativeVotes Known Bugs.

NativeVotes has five vote-related cvars for displaying ongoing votes:
  • nativevotes_vote_delay
  • nativevotes_progress_hintbox
  • nativevotes_progress_chat
  • nativevotes_progress_console
  • nativevotes_progress_client_console

Get Plugin does not work because this requires nativevotes.inc to compile.
Attached Files
File Type: smx nativevotes-basevotes.smx (18.8 KB, 641 views)
File Type: zip nativevotes-basevotes.zip (32.4 KB, 896 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-19-2014 at 09:19. Reason: Specify which games
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-19-2014 , 09:16   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes
Reply With Quote #2

Here's a new version, 1.5.3.

The things it fixes are:
  • Kick votes were always passing, even when No votes outweighed yes votes. This is now fixed.
  • Translations for vote titles weren't always working. This should be fixed.
Attached Files
File Type: smx nativevotes-basevotes.smx (18.8 KB, 489 views)
File Type: zip nativevotes-basevotes.zip (32.4 KB, 322 views)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 06-10-2014 , 02:50   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #3

Nice, will give this a go
Ellie is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 06-12-2014 , 15:15   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #4

Ok I tried this along with the Native Votes Funvotes plugin in l4d and there's some issues.

1) The voteban doesn't appear in the menu by default.

2) Voteban will show up on the menu only if there is another vote in progress (that's very odd).

3) If the voteban gui is displayed, the question within the gui simply comes up as %s1 instead of saying if you'd like to voteban the specified player.

4) If a votekick or voteban passes the GUI for the vote passing stays on the screen long after the vote has passed.

Number 3 above is also true in your Native Votes Funvotes for Voteslay, Voteburn, Voteff, and votealltalk.


Hope you can get these working. I had the idea of these a while back when I had looked at you built-in votes extension.

Last edited by Ellie; 06-12-2014 at 15:23.
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-16-2014 , 16:37   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #5

I've been sick for the last few days.

So anyway...

Not sure what's going on with #1 and #2... most of the menu code is just a copy of the SourceMod version.

#3 and #4... does this also happen with the NativeVotes test plugin (the voteyesno and voteyesnocustom commands that is)?
Attached Files
File Type: sp Get Plugin or Get Source (nativevotes_votetest.sp - 475 views - 10.2 KB)
File Type: smx nativevotes_votetest.smx (7.1 KB, 303 views)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-11-2014 , 19:42   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #6

Im guessing it would be a bit too much to ask for a small example for adding multi choice votes or something, like a small example. I've been looking in the fun votes but since it is seperated its hard to remove all the functions except the ones i need to test it.

EDIT: found some examples in nativevotes_votetest thanks

Last edited by Mitchell; 09-12-2014 at 12:49.
Mitchell is offline
sparkie951
Member
Join Date: Jul 2014
Old 12-05-2014 , 09:10   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #7

Quick question??? Will this mod allow voting to change map? and if so, does it do it immediately or just make it the next map.

Thanks in advance.
sparkie951 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-05-2014 , 10:57   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #8

Quote:
Originally Posted by sparkie951 View Post
Quick question??? Will this mod allow voting to change map? and if so, does it do it immediately or just make it the next map.

Thanks in advance.
This plugin is functionally identical to the SourceMod basevotes plugin. The only difference is it uses the NativeVotes plugin to display votes if its available.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 03-01-2015 , 18:21   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #9

I'm not sure why but, for some reason when I use the kick command (and I guess ban command too) and I define a reason, the reason won't show on the vote.

The reason is shown on chat when the player is kicked, and on the disconnect box? of the kicked player.

I'm not sure if the default plugin has this problem too.
__________________
ClassicGuzzi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-02-2015 , 12:36   Re: [L4D/L4D2/TF2/CSGO] NativeVotes Basic Votes (1.5.3, 2014-03-19)
Reply With Quote #10

Quote:
Originally Posted by ClassicGuzzi View Post
I'm not sure why but, for some reason when I use the kick command (and I guess ban command too) and I define a reason, the reason won't show on the vote.

The reason is shown on chat when the player is kicked, and on the disconnect box? of the kicked player.

I'm not sure if the default plugin has this problem too.
The original also doesn't display the kick reason in the vote screen.

In fact, the translation phrase (in English) for this is:

Code:
Kick {1}?
Where {1} is the client name from GetClientName.

Due to this, rather than use a custom vote, I used the generic kick vote. This is because L4D, L4D2, TF2, and CS:GO have translation phrases for kick in every language they support.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-02-2015 at 12:40. Reason: Department of Redundancy Department.
Powerlord 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 06:49.


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