Raised This Month: $ Target: $400
 0% 

[HL2:DM] Coordinate changes mp_timelimit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
painkiller
Senior Member
Join Date: Jun 2011
Old 03-06-2022 , 13:56   [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #1

Hello Sourcemod Team and Community,

I would like to have a plugin that saves a coordinate on a map.
This coordinate should be used via a chat command (admin side). For example just "Save" in the chat.

When you reach this coordinate, timelimit should switch to 10 seconds.
(map_end does not exist in HL:2DM)

So the map should end and change to the next one.
The coordinate should be saved in a database.
Because I want to use this for several maps at different coordinates.

If possible, a flying logo should appear at this coordinate:
- flying logo should appear (VTF,VMT).
- sound (mp3)
- game_text (also coordinate colour fade in fade out hold time etc.)
- Config should also be created so that you can do this individually for each map and set several points.
- Set timelimit at this coordinate on/ off

If someone could do this I would be very grateful.

Greeting Pain

Last edited by painkiller; 03-06-2022 at 13:57.
painkiller is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-07-2022 , 18:28   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #2

- Do have this work on on both deathmatch and Team deathmatch ?

- Does it need to be SQL database ?
KeyValue file per map is more simple and you can configure later with text editor. (if plugin is created that way)

- Should sound play all the time or when player hit trigger ?
__________________
Do not Private Message @me

Last edited by Bacardi; 03-07-2022 at 18:29.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-11-2022 , 11:26   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #3

small preview, plugin not ready.
This is what I have done this far, I maybe done too advanced

- Idea is, in this "checkpoint" where you "save", you can create entity/entities what you like.
With another config file, I have default template which create env_flare and prop_dynamic_override everytime when save new checkpoint.
Then I can edit checkpoints from map config file to create my own entities with own parameters.
So this way you have more option to do, rather than edit plugin code everytime.

But this is still experiment, don't know how this work at the end.

- Timer with 1 second interval check players, how far they are from checkpoint.
When player is close enough, it just play siren sound. it not have any configure now.

I have other things to do, so this is slow progress.
- Anyone else could do plugin for you maybe faster :/

1440p



dev config file
__________________
Do not Private Message @me

Last edited by Bacardi; 03-11-2022 at 11:44. Reason: \
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-22-2022 , 02:58   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #4

sorry, this take time. I have been sick. And I'm still sick.
Bacardi is offline
painkiller
Senior Member
Join Date: Jun 2011
Old 03-28-2022 , 16:13   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #5

Is there any new news yet?
painkiller is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-29-2022 , 03:41   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #6

Sorry, I have not done anything in these past week(s).
I try to look this after I fix my car.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-04-2022 , 04:03   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #7

I'm not good with Stripper, to do triggers.

I need to peek Silvers plugin use that if it is much better
[ANY] Trigger Multiple Commands (1.5) [20-Apr-2021]

But here is first version about SM plugin. It not have all features, I do those later.

Team chat commands: "save", "showtriggers"

From console:
say_team save
say_team showtriggers


+ This draw trigger box with laser beams.
+ When player touch trigger, it active game_end entity with delay (this can be turn off from config)
+ Also, lines of server commands are executed every second, if you have set.


...mp_timelimit works with minutes, not seconds, it is hard to use that.

- If you restart match (mp_restartgame 1) triggers disappear. Lasers stays.
You can reload SM plugin to active those again.

Here is output config file
Code:
"triggers"
{
	"11194.345703 3585.062988 -263.968750"
	{
		"date"		"2022.04.04 10:35:49"
		"trigger_once"
		{
			"origin"		"11194.345703 3585.062988 -263.968750"
			"angles"		"0.000000 -151.072357 0.000000"
			"m_vecMins"		"-16.000000 -16.000000 0.000000"
			"m_vecMaxs"		"16.000000 16.000000 60.000000"
			"showlasersforever"		"1"
		}
		"game_end"
		{
			"delay"		"10.0"
		}
		"servercommands"
		{
			"0"		"say Hello World"
			"1"		"mp_chattime 15"
			"2"		"say Level is gonna change soon..."
		}
	}
	"10963.648437 3584.574951 -205.323745"
	{
		"date"		"2022.04.04 10:35:56"
		"trigger_once"
		{
			"origin"		"10963.648438 3584.574951 -205.323746"
			"angles"		"0.000000 178.567627 0.000000"
			"m_vecMins"		"-16.000000 -16.000000 0.000000"
			"m_vecMaxs"		"16.000000 16.000000 72.000000"
			"showlasersforever"		"1"
		}
		"game_end"
		{
			"delay"		"10.0"
		}
		"servercommands"
		{
			"0"		"say Hello World"
			"1"		"mp_chattime 15"
			"2"		"say Level is gonna change soon..."
		}
	}
	"10845.774414 3121.698486 -122.446319" // This is trigger_once origin position
	{
		"date"		"2022.04.04 10:36:29" // You can look when trigger is saved
		"trigger_once"
		{
			"origin"		"10845.774414 3121.698486 -122.446320" // This is not in use
			"angles"		"0.000000 -57.778530 0.000000"  // trigger_once, how it is rotated
			"m_vecMins"		"-16.000000 -16.000000 0.000000" // box dimension lower corner
			"m_vecMaxs"		"16.000000 16.000000 72.000000" // box dimension upper corner
			"showlasersforever"		"1" // Do you want see lasers forever ? 0 = then those shows up 25.6 seconds
		}
		"game_end"
		{
			"delay"		"10.0" // Delay when game end. Disable = 0.0
		}
		"servercommands"
		{
			"0"		"say Hello World; sm_say Hello \"World\" 2"
			"1"		"mp_chattime 15"
			"2"		"say Level is gonna change soon..."
			// You can add more command lines.
			// "3" "changelevel_next"
		}
	}
	"11382.975585 2801.463378 -222.014083"
	{
		"date"		"2022.04.04 10:37:02"
		"trigger_once"
		{
			"origin"		"11382.975586 2801.463379 -222.014084"
			"angles"		"0.000000 90.325523 0.000000"
			"m_vecMins"		"-16.000000 -16.000000 0.000000"
			"m_vecMaxs"		"16.000000 16.000000 60.000000"
			"showlasersforever"		"1"
		}
		"game_end"
		{
			"delay"		"10.0"
		}
		"servercommands"
		{
			"0"		"say Hello World"
			"1"		"mp_chattime 15"
			"2"		"say Level is gonna change soon..."
		}
	}
}
*update 4.4.2022 22:11
- Add "CreateDirectory" in code
Attached Files
File Type: sp Get Plugin or Get Source (test.sp - 66 views - 14.2 KB)
__________________
Do not Private Message @me

Last edited by Bacardi; 04-04-2022 at 15:12.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-04-2022 , 14:01   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #8

Could you show your server version?
In console:
version
status

*edit
Updated plugin #10
It now create folder "addons\sourcemod\configs\maptriggers\"
- This help KeyValues to save keyvalue file now.

Mention, if you are using server Operation System Linux, because this have some permission things.

*edit
Ok, I did not tough in the end about lasers. Those need draw when client spawn on map.
I need fix that.

__________________
Do not Private Message @me

Last edited by Bacardi; 04-04-2022 at 15:34.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-04-2022 , 17:49   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #9

Well this game have game_end entity, and it works what I have tested.

https://developer.valvesoftware.com/wiki/Game_end

...in HL2 single-player game it not work.

dumpentityfactories


I need fix that plugin and add other features
__________________
Do not Private Message @me
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-05-2022 , 00:07   Re: [HL2:DM] Coordinate changes mp_timelimit
Reply With Quote #10

...try delete maptriggers folder.
Reload plugin.
Go play on map and use "save".
Reload plugin again, can you see red laser box ?

If not and there is no maptriggers folder or map txt config,
try change CHMOD permission of maptriggers folder to 777,
create folder if it not exist.


Try upgrade SM and MM:S
https://www.sourcemod.net/downloads.php?branch=stable
http://www.metamodsource.net/downloa...?branch=stable

For not loose your admin configure, don't replace sourcemod/configs/ folder.
And don't replace cfg/sourcemod folder.

https://youtu.be/jqnnvIjH2WQ?t=199
__________________
Do not Private Message @me
Bacardi 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 07:09.


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