This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

CSS respawn: the killed join the killer team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Monseter2
Junior Member
Join Date: Apr 2022
Old 04-05-2022 , 21:39   CSS respawn: the killed join the killer team
Reply With Quote #1

request plugin that do this:

the killed join the killer team game-play:
when a counter terrorist player kill a terrorist player the killed terrorist player respawn as counter terrorist and vice versa when a terrorist player kill a counter terrorist player the killed counter terrorist player respawn as terrorist.
the team balance must be off of course.

thank you in advance

Last edited by Monseter2; 04-06-2022 at 06:52.
Monseter2 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-06-2022 , 08:24   Re: CSS respawn: the killed join the killer team
Reply With Quote #2

Try the attached plugin will respawn the killed player on the killer's team after a delay which can be configured with sm_kst_respawndelay which defaults to 5 seconds.

Player will receive a chat notification that they have been moved to the killers team. This can be disabled with sm_kst_message.

Plugin also sets mp_autoteambalance to 0.

I haven't tested this plugin but it should work.
Attached Files
File Type: sp Get Plugin or Get Source (css_killed_switches_team.sp - 83 views - 2.2 KB)
xerox8521 is offline
Monseter2
Junior Member
Join Date: Apr 2022
Old 04-06-2022 , 08:54   Re: CSS respawn: the killed join the killer team
Reply With Quote #3

Quote:
Originally Posted by xerox8521 View Post
Try the attached plugin will respawn the killed player on the killer's team after a delay which can be configured with sm_kst_respawndelay which defaults to 5 seconds.

Player will receive a chat notification that they have been moved to the killers team. This can be disabled with sm_kst_message.

Plugin also sets mp_autoteambalance to 0.

I haven't tested this plugin but it should work.
work like a charm, many thanks
Monseter2 is offline
loly2000
Junior Member
Join Date: Apr 2022
Old 04-06-2022 , 09:45   Re: CSS respawn: the killed join the killer team
Reply With Quote #4

good gameplay idea , but the plugin need to be fixed, the second round we get a full team wondering with 0 enemies on the game

my request: can we have a config file where we can edit the respawn delay and chat notification
and please add ability to respawn on the same spot the player died. thank you

Last edited by loly2000; 04-06-2022 at 10:29.
loly2000 is offline
Monseter2
Junior Member
Join Date: Apr 2022
Old 04-06-2022 , 16:20   Re: CSS respawn: the killed join the killer team
Reply With Quote #5

unfortunately right now the plugin work like charm in first round, but the second round all players join one side team, we get endless round with 0 enemies
Monseter2 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-06-2022 , 16:34   Re: CSS respawn: the killed join the killer team
Reply With Quote #6

This should fix the issue with the unbalanced teams after a round. I played several round with bots it seemed to be fine now.

Because of the fix you need to install DHooks if you are not running SM 1.11.6820 or higher.

Also "Get Plugin" will fail because of this requirement.

Don't forget to add the gamedata file in /addons/sourcemod/gamedata

The plugin will now auto generate a config file in /cstrike/cfg/sourcemod/plugin.css_killed_switches_team.cfg

where you can configure the settings.

sm_kst_respawn_spot toggles how players respawn. 0 for normal spawning or 1 for where they died.
Attached Files
File Type: sp Get Plugin or Get Source (css_killed_switches_team.sp - 41 views - 4.7 KB)
File Type: smx css_killed_switches_team.smx (5.7 KB, 66 views)
File Type: txt css_killed_switches_team.txt (963 Bytes, 48 views)
xerox8521 is offline
Monseter2
Junior Member
Join Date: Apr 2022
Old 04-06-2022 , 18:51   Re: CSS respawn: the killed join the killer team
Reply With Quote #7

thank you for the update i will upgrade to SM 1.11.6820 to use this plugin
Monseter2 is offline
loly2000
Junior Member
Join Date: Apr 2022
Old 04-06-2022 , 19:42   Re: CSS respawn: the killed join the killer team
Reply With Quote #8

Quote:
Originally Posted by xerox8521 View Post
This should fix the issue with the unbalanced teams after a round. I played several round with bots it seemed to be fine now.

Because of the fix you need to install DHooks if you are not running SM 1.11.6820 or higher.

Also "Get Plugin" will fail because of this requirement.

Don't forget to add the gamedata file in /addons/sourcemod/gamedata

The plugin will now auto generate a config file in /cstrike/cfg/sourcemod/plugin.css_killed_switches_team.cfg

where you can configure the settings.

sm_kst_respawn_spot toggles how players respawn. 0 for normal spawning or 1 for where they died.
thanks for the fix and for adding the .cfg
i have test it and it work fine, but if no team win, the round won't end after 0:00 time, it should be a win for the ct team like when terrorist team fails on planting bomb scenario

also when i use the respawn on death spot, because the respawn position is very high, when we die inside buildings we respawn in second floor and sometimes we get stuck in ceilings and sometimes out of the map

also when we die from falling or any map damage we don't respawn please fix this

Last edited by loly2000; 04-06-2022 at 22:28.
loly2000 is offline
Monseter2
Junior Member
Join Date: Apr 2022
Old 04-07-2022 , 16:18   Re: CSS respawn: the killed join the killer team
Reply With Quote #9

Quote:
Originally Posted by loly2000 View Post
the round won't end after 0:00 time, it should be a win for the ct team like when terrorist team fails on planting bomb scenario
on normal map it work fine, but the round won't end after 0:00 time in some custom death match maps, because there is no func_bomb_target or hostage area on the map the round become endless until all enemies dies
Monseter2 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-08-2022 , 06:22   Re: CSS respawn: the killed join the killer team
Reply With Quote #10

Falling off of a map should now respawn you at the normal CT / T Position.

It will also try to place you on the ground directly.

Bonus feature for Linux servers (because the function doesn't exist in the windows binary) it will also try to place you in a position where you shouldn't be stuck.
This can probably still fail.

Make sure to update the gamedata file.

As before "Get Plugin" will not work due to the dhooks dependancy.
Attached Files
File Type: smx css_killed_switches_team.smx (7.3 KB, 41 views)
File Type: sp Get Plugin or Get Source (css_killed_switches_team.sp - 42 views - 8.0 KB)
File Type: txt css_killed_switches_team.txt (1.3 KB, 32 views)
xerox8521 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 23:57.


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