Raised This Month: $ Target: $400
 0% 

[L4D2] Signature Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dustinandband
Senior Member
Join Date: May 2015
Old 05-19-2024 , 10:36   [L4D2] Signature Request
Reply With Quote #1

Hi,

I'm working on a vote handler that intercepts votes for some things and replaces it with native vote's NativeVotes_DisplayToAllNonSpectators, so spectators can't have a say in certain types of votes. After the vote passes, I need the plugin to manually fire those events.

Would someone be able to find the signatures for the return to lobby and restart game functions that get called after the votesucceed function? For linux.

If it helps, the console command for these votes are "callvote RestartGame", and "callvote ReturnToLobby".

Thanks in advance
dustinandband is offline
Forgetest
Member
Join Date: Aug 2020
Old 05-25-2024 , 16:26   Re: [L4D2] Signature Request
Reply With Quote #2

Signature "CRestartGameIssue::ExecuteCommand" for restarting game could be found in here:
https://forums.alliedmods.net/showthread.php?p=2755921

As for returning to lobby, guess it could be done without game functions:
1. Execute cheat command "scripted_mode_shutdown".
2. Send user message "DisconnectToLobby" to everyone.

Let me know if any confusion.
Forgetest 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 12:59.


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