Point_viewcontrol and saving game problem

Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Hello there, a kind people. I tried to use entity point_viewcontrol for emulate a ladder climbing, it became very cool but i met a problem. If player try to use save while viewcontrol is active, it stops to follow the parent that causing a problem of activating this viewcontrol later.
At first look it is not a big deal, but there are some kinds of players: who not saves at all, who saves rarely and who saves very offen. So there is a chance so one of them could use save while "climbing" that will cause unwanted bug, which i and players don't want to be.

So i have a question: is there any way by which i can forbid for players to use a saves for a while? It could help a lot.

clik here to download a [WIP] map

Advertisement
Registered users don’t see ads! Register now!
Avatar
TopHATTwaffle
113 Posts
Posted Mar 05, 2013
Replied 15 minutes later
Saving can cause issues for a lot of things. I'd suggest that you unbind the default save key while the player is climbing, then bind it back. You can also just force a new auto save once they a done climbing. So when they reload, they are done climbing.
Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 56 minutes later
Unbind keys seems helpful for this situation, easy and effective. But how do i do this? With a some scripts or there are a some entity for that?

P.S. @TopHATTwaffle, thanks for your awesome tutorials and very helpful site, you are a great teacher for me :notworthy:

Avatar
TopHATTwaffle
113 Posts
Posted Mar 05, 2013
Replied 3 minutes later
If the maps are single player, just bind F6 (I think that's autosave?) to null. Here is the command.
"Unbind F6"

Then bind it back with:
"bind "F6" "save quick""

Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 42 minutes later
I know about these commands but the question is where i should type it, what entities should i use (except triggers of course)?
Avatar
TopHATTwaffle
113 Posts
Posted Mar 05, 2013
Replied 2 minutes later
Use a point_servercommand to fire the commands.
Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 10 minutes later
Thanks! That all what i have to know :3
Avatar
greykarel
225 Posts
Posted Mar 05, 2013
Replied 2 hours later
Hehe, new problem can arise for those players who have another key for quick saving but not F6. They will lose there own binding and get default one.
Avatar
TopHATTwaffle
113 Posts
Posted Mar 05, 2013
Replied 7 hours later
They won't actually. When you bind a key though the console you can have multiple key bindings. So they will just have F6 as a quick save bind as well.
Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 1 hour later

TopHATTwaffle wrote:
They won't actually. When you bind a key though the console you can have multiple key bindings. So they will just have F6 as a quick save bind as well.

I had the same thought, just didn't have time to reply =P

Avatar
HMW
806 Posts
Posted Mar 05, 2013
Replied 4 minutes later
In the very first level (wakeup sequence), there is a logic_auto with this output:

save_disable.png

I have not tested whether it works in a custom map, but try it out! It may be just the thing you need.
(@command is a point_servercommand in one of the global instances.)

Avatar
TopHATTwaffle
113 Posts
Posted Mar 05, 2013
Replied 17 minutes later

HMW wrote:
In the very first level (wakeup sequence), there is a logic_auto with this output:
save_disable.png

I have not tested whether it works in a custom map, but try it out! It may be just the thing you need.
(@command is a point_servercommand in one of the global instances.)

I totally forgot that is a thing... Don't listen to me. Do this, it will work.

Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 16 minutes later
Wow! That really looks more helpful than previous one. But thank to you both =)
Avatar
Timoteeei
22 Posts
Posted Mar 05, 2013
Replied 59 minutes later
"map_wants_save_disable" was the exactly what i need, but instead of "point_servercommand" or using as a target the "@command" (both do not work), i used "point_clientcommand" which works great
Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Mar 05, 2013
Replied 1 hour later
That's also what they use when you're going up in the elevator at the end of the level. I'd forgotten about it. Thanks!