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

[H3LP] CD Open/Close


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 11-21-2017 , 01:57   [H3LP] CD Open/Close
Reply With Quote #1

Hello. Is there any way to open / eject a CD? I tried on myself cd eject and cd open in console and they didn't seem to work. I would like to know because if it's possible, I'm gonna write a simple script for that. It's nice to sometimes have some fun with users as long as you're not doing any harm.

Last edited by DarthMan; 11-21-2017 at 01:58.
DarthMan is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-21-2017 , 02:11   Re: [H3LP] CD Open/Close
Reply With Quote #2

Most servers dont even have a cd drive.
__________________
Neuro Toxin is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-21-2017 , 02:22   Re: [H3LP] CD Open/Close
Reply With Quote #3

I'd have to guess this is impossible through SourcePawn. Not to mention if it was possible, it'd lead to a bunch of threads on various places about servers fucking with people's PCs.

Last edited by 404UserNotFound; 11-21-2017 at 02:23.
404UserNotFound is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 11-21-2017 , 04:12   Re: [H3LP] CD Open/Close
Reply With Quote #4

Quote:
Originally Posted by 404UserNotFound View Post
I'd have to guess this is impossible through SourcePawn. Not to mention if it was possible, it'd lead to a bunch of threads on various places about servers fucking with people's PCs.
Well, I see that clients by default can not open their cd drive from their PC so that leads me to think that this command never existed in the first place on source games. I'm talking about client-side execution. And yes, most people these days are using removable devices (sticks). Music and videos on CD's and DVD's will soon be complete history. Already, no. 1 is vinyl, then digital music, then cassettes I guess and last CD. Yup, in some countries audio tapes became popular again, but not like they used to in the past to make labels release today's music on tapes.
DarthMan is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 11-21-2017 , 06:12   Re: [H3LP] CD Open/Close
Reply With Quote #5

I believe you're asking this because of the "cd eject" and "cd close" commands from GoldSrc.
No, this (fortunately) isn't possible in Source.
__________________
retired
shavit is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 11-21-2017 , 11:14   Re: [H3LP] CD Open/Close
Reply With Quote #6

Quote:
Originally Posted by shavit View Post
I believe you're asking this because of the "cd eject" and "cd close" commands from GoldSrc.
No, this (fortunately) isn't possible in Source.
I see, thanks for letting me know.
DarthMan is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 11-21-2017 , 12:13   Re: [H3LP] CD Open/Close
Reply With Quote #7

I mean, it'd be funny for like, SourceMod Anti-Cheat or any kind of anti-cheat, where if it detects someone is cheating, it could open and close their CD drive repeatedly, but it's not possible.
404UserNotFound is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 11-21-2017 , 19:21   Re: [H3LP] CD Open/Close
Reply With Quote #8

Quote:
Originally Posted by 404UserNotFound View Post
I mean, it'd be funny for like, SourceMod Anti-Cheat or any kind of anti-cheat, where if it detects someone is cheating, it could open and close their CD drive repeatedly, but it's not possible.
That would be straight up slowhacking. It's gone for good.
__________________
retired
shavit is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 11-22-2017 , 02:02   Re: [H3LP] CD Open/Close
Reply With Quote #9

Quote:
Originally Posted by shavit View Post
That would be straight up slowhacking. It's gone for good.
Then aren't thigns like changing player name, making him type in chat by say command and other stuff like that also considered slow hacking? Including changing a player weapon r executing just about any command that is not a server-side command. Maybe the user didn't want his weapon to be switched that time.
DarthMan is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 11-22-2017 , 11:11   Re: [H3LP] CD Open/Close
Reply With Quote #10

Quote:
Originally Posted by DarthMan View Post
Then aren't thigns like changing player name, making him type in chat by say command and other stuff like that also considered slow hacking? Including changing a player weapon r executing just about any command that is not a server-side command. Maybe the user didn't want his weapon to be switched that time.
Those aren't even slowhacks as they don't change anything for the player's computer, but just in context for the gamemode. Even if they would, those examples are just harmless slowhacks.
Not allowing servers to change a player's weapon (see snippet below) would break gamemodes such as Trikz (CS:S) or even a "mini game-mode" inside the popular Jailbreak from CS:S, CS:GO and TF2:
Code:
switch(gLR_Current)
{
	case LR_Dodgeball:
	{
		if(StrEqual(sWeapon, "flashbang"))
		{
			DataPack dp = new DataPack();
			dp.WriteCell(GetClientSerial(client));
			dp.WriteString("weapon_flashbang");

			CreateTimer(0.25, Timer_AutoSwitch, dp);
		}
	}
}

public Action Timer_AutoSwitch(Handle Timer, any data)
{
	ResetPack(data);
	int serial = ReadPackCell(data);

	char[] sWeapon = new char[32];
	ReadPackString(data, sWeapon, 32);

	CloseHandle(data);

	int client = GetClientFromSerial(serial);

	if(client == 0)
	{
		return Plugin_Stop;
	}

	FakeClientCommand(client, "use weapon_knife"); // simulate the same effect of sending "invprev" twice
	GivePlayerItem(client, sWeapon);
	FakeClientCommand(client, "use %s", sWeapon);

	return Plugin_Stop;
}
__________________
retired

Last edited by shavit; 11-22-2017 at 11:14.
shavit 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:23.


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