ooinic / sourcemod-ultimate-mapchooser

Automatically exported from code.google.com/p/sourcemod-ultimate-mapchooser
0 stars 0 forks source link

Add additional forward for clients voting. #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Requested by Doobie in IRC.

Should look something like:

UMC_ClientVoted(const String:voteManager[], client, Handle:item);

Due to how this is controlled by the vote manager, it will require a way for 
the VM to report to core when someone has voted.

The following native is proposed:

UMC_VMReportClientVoted(const String:id[], client, Handle:item);

VoteManagers could probably be rewritten to supply all results to core through 
this native, rather than tabulating them at the end. This refactor would 
require a close inspection on how the memory of these handles is managed.

Original issue reported on code.google.com by Steell1...@gmail.com on 14 Mar 2012 at 11:47

GoogleCodeExporter commented 8 years ago

Original comment by Steell1...@gmail.com on 15 Mar 2012 at 3:13

GoogleCodeExporter commented 8 years ago
Placeholder has been added. The forward will fire, but the item Handle will 
always be INVALID_HANDLE

Original comment by Steell1...@gmail.com on 16 Mar 2012 at 1:26