StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

Allow for `point_clientcommand` and `point_servercommand` ignore `sv_cheats 1` #838

Open MyGamepedia opened 1 year ago

MyGamepedia commented 1 year ago

What would this enhancement be for?

Gameplay

Describe your enhancement suggestion in more detail

@LambdaCore21 suggest prevent to use give without sv_cheats 1, like ent_fire, ent_create and a lot of other commands. It's good suggestion because of it's force to players get achievements or done maps in an honest way. However - it's broke compatibility, in d1_eli_02 you get physcannon thanks give command. A lot of Portal, Portal 2 and Half Life 2 maps and mods (I also very like to use the entities because of you don't need to place a lot of unnecessary scripts and entities) use in maps console commands that are in P2CE is prevented to use without sv_cheats 1. I suggest the next - if command was caused by input thanks point_clientcommand or point_servercommand - game ignore if sv_cheats is 0 or 1 and apply command. No idea how hard it's should be to implement, but it's should very help to compatibility and allow for mappers a lot of huge opportunities. The same achievements, you may want to add to mod achievement for which you should bring some item from start to end of mod, it's not okay if you really need to do it for just test if your achievement work.

LambdaCore21 commented 1 year ago

This is a very good suggestion imo!

grafik

The outcome would be something like

grafik

So the ent_fire in combination with clientcommand act like a gatekeeper here

--> give the clientcommands access to every cheat command, but limit the access to client/servercommands from within the game console (without activated sv_cheats 1)

ozxybox commented 1 year ago

Is ent_fire not cheat protected?

MyGamepedia commented 1 year ago

Is ent_fire not cheat protected?

Protected, but only in Strata and MP games, Black Mesa for example.

LambdaCore21 commented 1 year ago

For this enhancement it is mandatory to make the give command cheat protected.

Since Erin closed the suggestion #837 already, there is no point for this one imo. @MyGamepedia please share your thoughts

MyGamepedia commented 1 year ago

For this enhancement it is mandatory to make the give command cheat protected.

Since Erin closed the suggestion #837 already, there is no point for this one imo. @MyGamepedia please share your thoughts

thoughts about what ? if you about my suggestion - it's still useful. @ozxybox as I can see already implementing it.

LambdaCore21 commented 1 year ago

You've stated that existing Valve maps are broken already, due to the decision to make ent_fire and ent_create cheat protected.

grafik

If this were the case, there would be a valid reason to implement your suggestion #838

MyGamepedia commented 1 year ago

You've stated that existing Valve maps are broken already, due to the decision to make ent_fire and ent_create cheat protected.

grafik

If this were the case, there would be a valid reason to implement your suggestion #838

I tried to use ent_fire for light entities, it's can't be used without sv_cheats 1.

MyGamepedia commented 1 year ago

I even can show it.