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

[SNIPPET] DoD:Source Force Player Suicide in SpawnArea


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-05-2008 , 10:40   [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #1

I've just been trying around finding a good way to kill a player that's
in the spawnarea when suddenly the idea came to my mind:

When do players always die, no matter in spawn or not??
- if they switch team!

And that's what I'm actually doing:
- Switch player to the opposite team
- Players dies
- Block the "X joined team Y" message
- Block the class selection menu
and then:
- Switch player back to his old team
- Block the "X joined team Y" message
- Block the class selection menu
that way the player is on his old class again when he respawns.

The player will not notice a difference to commiting suicide "the normal way"!

Tested and working!

See attached sample plugin and test it yourself with the command
"testsafekill"

Last edited by FeuerSturm; 01-28-2020 at 05:21.
FeuerSturm is offline
MaKTaiL
Senior Member
Join Date: Jul 2008
Location: Brazil
Old 10-05-2008 , 12:27   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #2

Hi FeuerSturm! Another great work of yours.

I wanted to ask you if there is a possibility to enable players to enter the losing team spawn area when a team wins the round.
MaKTaiL is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-05-2008 , 12:31   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #3

Quote:
Originally Posted by MaKTaiL View Post
Hi FeuerSturm! Another great work of yours.

I wanted to ask you if there is a possibility to enable players to enter the losing team spawn area when a team wins the round.
Should be possible by removing the invisible walls that prevent the
other team from entering different areas.

I'll take a look at that for sure, BUT where's the connection to this snippet?
FeuerSturm is offline
clement
New Member
Join Date: Dec 2007
Old 10-05-2008 , 13:22   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #4

Thanks FeuerSturm

Quote:
Originally Posted by MaKTaiL View Post
Hi FeuerSturm! Another great work of yours.

I wanted to ask you if there is a possibility to enable players to enter the losing team spawn area when a team wins the round.
Remove entity with classname func_teamblocker and func_team_wall
clement is offline
MaKTaiL
Senior Member
Join Date: Jul 2008
Location: Brazil
Old 10-05-2008 , 18:11   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #5

Quote:
Originally Posted by FeuerSturm View Post
Should be possible by removing the invisible walls that prevent the
other team from entering different areas.

I'll take a look at that for sure, BUT where's the connection to this snippet?
The connection is the Spawn! XDD
I just wanted to post here since you were already online at the time.
Sorry if I did it wrong. Next time I will post another thread

I just thought that this feature would be a nice addition to Team Manager Source as well. What do you think?

Last edited by MaKTaiL; 10-05-2008 at 18:16.
MaKTaiL is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-06-2008 , 05:22   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #6

You say you block the class selection menu, but does it really not show? The closest I've gotten was where you see it for a split second.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-06-2008 , 12:14   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #7

Quote:
Originally Posted by DJ Tsunami View Post
You say you block the class selection menu, but does it really not show? The closest I've gotten was where you see it for a split second.
It's not even flickering on the screen, it's like it's not being
opened at all.

I'm using that method since early version of DoD TMS for the TeamSwap
feature and never heard that it was showing for a split second from
anyone, neither did I ever notice it.

So the only way to find out if your eyes work like a high-speed-cam
is to try it yourself, that's why I included a selftest command
FeuerSturm is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-06-2008 , 19:26   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #8

Can you block the class select menu with that same method? I see your only hiding it when you kill them and change their team, but I am trying to figure out how to do it so when they first join, after they select a team, they dont get the class select screen.
__________________
CrimsonGT is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-07-2008 , 00:49   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #9

Quote:
Originally Posted by CrimsonGT View Post
Can you block the class select menu with that same method? I see your only hiding it when you kill them and change their team, but I am trying to figure out how to do it so when they first join, after they select a team, they dont get the class select screen.
I'm pretty sure that if you manage to block the class selection
(you could hook the cmd "jointeam" and block the class selection if
player's team is "Unassigned" = 0 on calling it)
the player would not spawn unless you'd add a
FakeClientCommand(client, "cls_*")
while cls_* should be the class that you want to give him
(i.e. cls_random)

(I couldn't get to set a players class yet, it just displays on the scoreboard when I
change it through "m_iPlayerClass", but once a player respawns,
it's changed to the class the player selected before.)

To be honest, I didn't do any research on that then as I didn't need to use it yet.

I hope that post makes any sense to you, just got out of the bed and have to go to work now
FeuerSturm is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-07-2008 , 01:47   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #10

Yeah thats fine, I already have my server set up so it spawns them as a soldier no matter what class they choose. I basically just want to get rid of the class chooser menu. Theres a native for TF2 that lets you set the players class though so its easy for me. No clue for DoDs.
__________________
CrimsonGT 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 13:00.


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