Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Spawns missing / not working and admins.cfg mistake #45

Closed
xaddey opened this issue Mar 4, 2024 · 5 comments
Closed

Spawns missing / not working and admins.cfg mistake #45

xaddey opened this issue Mar 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@xaddey
Copy link

xaddey commented Mar 4, 2024

Hi

Thanks for the great plugin.
The .spawns on mirage are not working properly / are missing.
On T Side 3-4-5 are working, with the rest it doesn't work at all.
example:

.spawn 2
"[CS2Scrim] You have been teleported to spawn. 2/10 priority:0"

But i won't get teleported. Probably outdated spawns?
I might try to update them myself.

And when i tried to add admins to "admins.cfg" it had "steamid" instead of "steam"
which would prevent it from actually load the admins.

best regards

edit:

Versions

[01] CS2Scrim (1.1.0-beta) by marqdevx (ρλd)

meta version
Metamod:Source Version Information
Metamod:Source version 2.0.0-dev+1282
Plugin interface version: 16:14
SourceHook version: 5:5
Loaded As: GameDLL (gameinfo.txt)
Compiled on: Feb 7 2024 19:09:08
Built from: alliedmodders/metamod-source@3740821
Build ID: 1282:3740821
http://www.metamodsource.net/

@marqdevx
Copy link
Owner

marqdevx commented Mar 4, 2024

@marqdevx marqdevx added the bug Something isn't working label Mar 4, 2024
@marqdevx
Copy link
Owner

marqdevx commented Mar 4, 2024

Ive checked and yes, i have the same issue, idk why

The plugin looks the spawn entities and just use the competitive ones, in theory

I will check

@marqdevx
Copy link
Owner

marqdevx commented Mar 5, 2024

I am getting this on mirage

T Spawns

Spawn 0: 1296.000000 / -352.000000 / -144.000000
Spawn 1: 1296.000000 / 32.000000 / -144.000000
Spawn 2: 1216.000000 / -16.000000 / -144.000000
Spawn 3: 1216.000000 / -115.000000 / -144.000000
Spawn 4: 1216.000000 / -211.000000 / -144.000000
Spawn 5: 1216.000000 / -307.000000 / -144.000000
Spawn 6: 1136.000000 / -256.000000 / -144.000000
Spawn 7: 1136.000000 / -160.000000 / -144.000000
Spawn 8: 1136.000000 / -64.000000 / -144.000000
Spawn 9: 1136.000000 / 32.000000 / -144.000000

CT Spawns

Spawn 0: -1776.000000 / -1976.000000 / -240.000000
Spawn 1: -1776.000000 / -1800.000000 / -240.000000
Spawn 2: -1720.000000 / -1896.000000 / -240.000000
Spawn 3: -1656.000000 / -1800.000000 / -240.000000
Spawn 4: -1656.000000 / -1976.000000 / -240.000000

But I don't understand why it does not teleport

Then on inferno CT side, I also get 6 spawn points

Spawn 0: 2493.000000 / 2090.000000 / 140.843002
Spawn 1: 2456.830078 / 2153.159912 / 140.843002
Spawn 2: 2472.349854 / 2005.969971 / 140.843002
Spawn 3: 2353.000000 / 1977.000000 / 140.843002
Spawn 4: 2292.060059 / 2027.689941 / 140.843002
Spawn 5: 2397.000000 / 2079.000000 / 155.000000

On this case, the only one which doesnt work is the Spawn 5 (the 6th)

@marqdevx
Copy link
Owner

marqdevx commented Mar 5, 2024

Using this

void Teleport(Vector *position, QAngle *angles, Vector *velocity)
{
static int offset = g_GameConfig->GetOffset("Teleport");
CALL_VIRTUAL(void, offset, this, position, angles, velocity);
}
function isntead of setting the pos, seems to successfully teleport the player

marqdevx added a commit that referenced this issue Mar 5, 2024
@marqdevx
Copy link
Owner

marqdevx commented Mar 5, 2024

Test on the sv with the following package https://github.com/marqdevx/mm-cs2-scrim/actions/runs/8157417369?pr=44

marqdevx added a commit that referenced this issue Mar 6, 2024
* 1.0.4 release, new features and fixes (#38)

* Uppdate credits

* Change ambuild config setting

* Coach tweaking

* Add `.noflash` command

* Add player damaged info

* Fix parse chat command function

* Add team select through chat command (`.ct`, `.t`, `.spec`, `side`)

* Remove unused sound block

* Clean up

* Hook say command, from `CS2Fixes`

Source2ZE/CS2Fixes@2808f35

* Fix build script

* Coach not taking player spawn

* Add `.rcon`

* 2nd iteration coach spawn

* Flash info fix

* Add map on demo name

* Coach 2nd iteration

* Coach choose side on spec

* bump version

* Spawn side can be chosen

Command optional addition `!spawn <spawn number> <ct/t>`

* Coach can choose side

Optional addition `.coach <ct/t>`

* Coach does dont block player spawns anymore

Now the coach is not blocking the competitive spawns from players.
On round pre-start the coach is switched to spectator, the players are spawned, once all the players are on the competitive spawns, the coach is moved to its target team.

* Add modularity to enable/disable features

Now the features of the plugin are configurable from the cs2scrim .cfg file, all enabled by default (if the cfg is not present)

* Fix flash crash

The crash was happening casued by null pointer not being checked

* Added `CCSPlayerPawnBase`

Needed class to remove flash effect

* Add `.last` command

.last command will teleport you to the latest grenade thrown, individual for each player.

fix

* Fix admin not being loaded

Fixing #36

* Block `.noclip` command only for practice

* Change plugin description and author

* Update readme

* Fix compile action

* Fix include

* Bump version `1.0.4-beta`

* Remove grenade thrown debug info

* Add `.unban` command (#20)

Co-authored-by: marqdevx <[email protected]>

* Comment

* Clean cvar

* Add description

* Improve performance

* Enable by cvar

* Mark and clean

* Fix `.setteam`

* Add CFGs

* create subfolder

* Bump version `1.0.4`

* Add control by cvar

* Remove tests

* Fix `.noflash` command

* Add control by cvars

* Clean description

* Update command list and description

* Update command list

* Clean and update credits

* Marqdevx/rebase/cs2fixes 1.5.0 (#43)

* Rebase from @CS2Fixes 1.5.0

* Remove unused functions

* Fix addresses

* Fix addresses namespace

* Fix changelevel crash

* add credits and warmup end

* Remove unused `Playerpawnbase` header

Now the `CCSPlayerPawnBase` is inside `CCSPlayerPawn` class header

* Fix client crash onTransmit

* Dont install ambuild when its already done

* Cleared get slots APis

* Re-add new features after rebase

---------

Co-authored-by: marqdevx <[email protected]>

* Add mapname to .dem file

---------

Co-authored-by: marqdevx <[email protected]>

* Bump version

* Update roadmap and metamod version

* Update gamedata txt `d51c978`

* coach kill after spawn

* Remove spawn priority output

* Remove CS2Fixes patches

* Enable no flash due to typo

* Fix cvar descriptions

* Move organize command

* Bump version

* Clean feedback chat and colors

* Remove coach on disconnect

* Last grenade only teleports if exists

* Update readme

* Fix spawns teleport

Fixing #45

* Add gotv folder

---------

Co-authored-by: marqdevx <[email protected]>
@marqdevx marqdevx closed this as completed Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants