Raised This Month: $32 Target: $400
 8% 

[CS:S] VIPMod


Post New Thread Reply   
 
Thread Tools Display Modes
Pro21HUN
New Member
Join Date: Aug 2016
Old 06-05-2017 , 08:23   Re: [CS:S] VIPMod
Reply With Quote #381

No round end and if the VIP enter the safe zone thats the message in server cmd:

L 06/05/2017 - 14:18:42: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 06/05/2017 - 14:18:42: [SM] Displaying call stack trace for plugin "VIPMod.smx":
L 06/05/2017 - 14:18:42: [SM] [0] Line 122, vip/core.inc::FireRoundEnd()
L 06/05/2017 - 14:18:42: [SM] [1] Line 115, VIPMod.sp::OnVIPEscape()
L 06/05/2017 - 14:18:42: [SM] [2] Line 293, vip/core.inc::CheckVIPPosition()
Pro21HUN is offline
WinOutR
New Member
Join Date: Jun 2019
Old 06-17-2019 , 03:31   Re: [CS:S] VIPMod
Reply With Quote #382

Map AS_Recon Fixed

https://gamebanana.com/maps/205520

Have Fun

BTW i've found a version 3.0 is this right?

still wondering

Last edited by WinOutR; 06-17-2019 at 03:32.
WinOutR is offline
Send a message via ICQ to WinOutR
PRince4
New Member
Join Date: Sep 2017
Old 06-17-2019 , 12:04   Re: [CS:S] VIPMod
Reply With Quote #383

Quote:
Originally Posted by WinOutR View Post
Map AS_Recon Fixed
BTW i've found a version 3.0 is this right?
Can you please link that to me?
PRince4 is offline
WinOutR
New Member
Join Date: Jun 2019
Old 06-17-2019 , 20:39   Re: [CS:S] VIPMod
Reply With Quote #384

Quote:
Originally Posted by PRince4 View Post
Can you please link that to me?
Found it here: https://forums.alliedmods.net/showpo...&postcount=276

Well it was from 2011 and i'm looking actual for a compileable version of kyles Source...

The google mirror to github don't want the pawn compiler anymore: such like little behaviors as "FCVAR" is not the problem, but the old HLXCE isn't anymore working.

...and i don't think that kyle will get it to a new version, the 1.2.3 works nowadays with some unknown cvars just like vip_escapetime
WinOutR is offline
Send a message via ICQ to WinOutR
Cbx150
New Member
Join Date: Sep 2020
Location: Argentina
Old 09-15-2020 , 18:07   Re: [CS:S] VIPMod
Reply With Quote #385

Quote:
Originally Posted by Pro21HUN View Post
No round end and if the VIP enter the safe zone thats the message in server cmd:

L 06/05/2017 - 14:18:42: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 06/05/2017 - 14:18:42: [SM] Displaying call stack trace for plugin "VIPMod.smx":
L 06/05/2017 - 14:18:42: [SM] [0] Line 122, vip/core.inc::FireRoundEnd()
L 06/05/2017 - 14:18:42: [SM] [1] Line 115, VIPMod.sp::OnVIPEscape()
L 06/05/2017 - 14:18:42: [SM] [2] Line 293, vip/core.inc::CheckVIPPosition()
Hello, sorry for the inconvenience, you were able to solve this error ... the same thing happens to me on my server. Excuse my English
Cbx150 is offline
Cbx150
New Member
Join Date: Sep 2020
Location: Argentina
Old 09-15-2020 , 18:12   Re: [CS:S] VIPMod
Reply With Quote #386

Hello, do you know if there is a more recent or updated plugin?


sorry for my English
Cbx150 is offline
NOTORIOUS7302
Member
Join Date: Nov 2018
Location: Anonymous
Old 12-25-2020 , 03:11   Re: [CS:S] VIPMod
Reply With Quote #387

Just tried the mod out! Seems pretty cool and has potential so thank you for people working on it! Problem is, I have a round end issue. Is it just me?

Also archive link is dead: http://vipmod-css.googlecode.com/files/Package.rar

Last edited by NOTORIOUS7302; 12-25-2020 at 03:20.
NOTORIOUS7302 is offline
The Spirit of Morpheus
New Member
Join Date: Jun 2021
Old 07-01-2021 , 11:31   Re: [CS:S] VIPMod
Reply With Quote #388

Okay, I've tried to get VIPMod running in the last few days, but it just doesn't run correctly despite having it setup properly (exactly as instructed in the starting post) !

Here's how I set up VIPMod:

1.) I've copied the contents of "Base.rar" and "Package.rar" into my CS:S custom stuff folder:




2.) Then I've copied "VIPMod-1.2.3.smx" into "addons/sourcemod/plugins" folder:




3.) Finally, I've copied the "plugin.VIPMod.txt" file to "addons/sourcemod/gamedata" folder:




4.) I've already put the "-insecure" argument into Steam Launch Optionss for CS:S.

The Result: VIPMod still doesn't work properly! First off, I get this error message when I open up console immediately after starting CS:S...

Code:
[VIPMod.smx] The model you've selected (models/player/vip/small2/vip.mdl) doesn't exist.

...despite having it installed:



But the real issue though, is, that the VIP Gamemode doesn't function properly - if I get killed (as the VIP), then the round does NOT end! Likewise, if I successfully reach the helicopter/extraction point as the VIP, then the round doesn't end (1st screenshot) - instead, this happens: (2nd screenshot)








I fall onto a small lake or oasis on the bottom of the map without dying - and I can't do anything anymore except restarting the map...

What did I do wrong!?

Please help...

T.S.O.M.

Last edited by The Spirit of Morpheus; 07-01-2021 at 11:34.
The Spirit of Morpheus is offline
AndroSynth
New Member
Join Date: Oct 2021
Old 05-25-2022 , 23:04   Re: [CS:S] VIPMod
Reply With Quote #389

I always hate finding old threads on the web with no solution at the end of the tunnel. So I decided to dive into the scripting here a bit and see what I could do, got the source and took a look. First time ever scripting anything with sourcepawn so no clue if this is best practice, but I think I've fixed the issue by changing 4( optional 8 ) lines of code in vip\core.inc in the FireRoundEnd function around line 107.

The commented out lines regarding SDKCall below are the original, and the CS_TerminateRound calls immediately after in each case of the switch are my changes. I'm not sure if HLX:CE support was causing issues but seeing as I don't run it, I also took the liberty of removing those.
Code:
		case 0: // Disconnection / Team Change.
		{
			/* SDKCall(g_hTerminateRound, g_fRoundEndDelay, 2);		// The VIP has been assassinated! */
			/* LogPlayerEvent(g_iVIPIndex, "triggered", "VIP_Killed"); // HLX:CE Support */
			CS_TerminateRound(5.0, CSRoundEnd_VIPKilled);
			SetTeamScore(2, GetTeamScore(2)+1);
			SetScore(2);
			PlayTeamSound(2);
			SetCash(2);
		}
		
		case 1:
		{
			/* SDKCall(g_hTerminateRound, g_fRoundEndDelay, 1);		// The VIP has escaped! */
			/* LogPlayerEvent(g_iVIPIndex, "triggered", "VIP_Escaped"); // HLX:CE Logging Support */
			CS_TerminateRound(5.0, CSRoundEnd_VIPEscaped);
			SetEntProp(g_iVIPIndex, Prop_Data, "m_MoveType", MOVETYPE_NONE);
			SetTeamScore(3, GetTeamScore(3)+1);
			SetScore(3);
			PlayTeamSound(3);
			SetCash(3);
		}
		
		case 2:
		{
			/* SDKCall(g_hTerminateRound, g_fRoundEndDelay, 14);	// The VIP has not escaped! */
			/* LogPlayerEvent(0, "triggered", "VIP_NotEscaped"); // HLX:CE Logging Support - There's no support for this from Source? o.O */
			CS_TerminateRound(5.0, CSRoundEnd_VIPNotEscaped);
			SetTeamScore(2, GetTeamScore(2)+1);
			SetScore(2);
			PlayTeamSound(2);
			SetCash(2);
		}
		
		case 3:
		{
			/* SDKCall(g_hTerminateRound, g_fRoundEndDelay, 2);		// The VIP has been assassinated! */
			/* LogPlyrPlyrEvent(Attacker, g_iVIPIndex, "triggered", "VIP_Killed"); // HLX:CE Logging Support */
			CS_TerminateRound(5.0, CSRoundEnd_VIPKilled);
			SetTeamScore(2, GetTeamScore(2)+1);
			SetScore(2);
			PlayTeamSound(2);
			SetCash(2);
		}
Only have done a handful of rounds on as_courthouse but it seems to be working. No doubt in my mind that there are probably other problems lurking in the code. I might take a further look if I have the time. Anyways, I've attached both the changed .inc file if you don't care to change it yourself, and a compiled version of the plugin with that change in place (with HLX:CE support removed). Also not completely sure but I don't think the .txt sdkhook override file is needed anymore using this method.

Best of luck, hope it helps somebody.
Attached Files
File Type: inc core.inc (7.9 KB, 41 views)
File Type: smx VIPMod.smx (16.7 KB, 37 views)
AndroSynth is offline
X_is_deprecated
New Member
Join Date: Apr 2024
Location: Tristesse
Old 04-10-2024 , 02:11   Re: [CS:S] VIPMod
Reply With Quote #390

Well, after several attempts I had made days before, I finally managed to write an improved version.

Changelog:
- Cancel the SlayTeam function, and use the CS_TerminateRound function instead.
- Mend the designed logic system used to select VIP from CTs. Now there shouldn't be any absence of the VIP while the round starts.
- Add more hints and messages given to the VIP and other members.
- Add 2 more parametres: vip_health (min: 100) & vip_armor (min:100, max:256)
Usage: vip_health <value>
Usage: vip_armor <value>
- The VIP is prohibited from dropping weapons or making any purchases.

Notice:
> The improved version is on a basis of the previous one (On page 1; Don't forget to download plugin.VIPMod.txt , Base.zip and Models.cfg ). And make sure you have the previous version correctly installed before decompressing this 7z file to overwrite.
> The plugin will automatically generate a cfg file for convenience.
> You can edit the Model.cfg, clear the contents and re-add all paths of files your preferred model needed.
Attached Files
File Type: 7z VIPmod_Another_-ver4-.7z (29.7 KB, 5 views)

Last edited by X_is_deprecated; 04-10-2024 at 08:43.
X_is_deprecated 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 09:20.


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