Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make valve have no turn stuck point? help
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
make valve have no turn stuck point? help

hi guys! i am trying to make a valve turn without being stuck at any point, just like in the "La Caza" mod. but i can not seem to get it right. my valve just keeps getting stuck at a specific point. please help if you can and will! Smile
(This post was last modified: 09-09-2012, 05:36 PM by bjaffedj.)
09-08-2012, 11:50 AM
Find
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#2
RE: make valve have no turn stuck point? help

SetPropObjectStuckState(string& asName, int alState);

asName - internal name

alState - 0 = not stuck, 1 = at max, -1 = at min

abEffects - use effects
(This post was last modified: 09-08-2012, 12:54 PM by EXAWOLT.)
09-08-2012, 12:53 PM
Find
Theforgot3n1 Offline
Member

Posts: 192
Threads: 20
Joined: Apr 2012
Reputation: 6
#3
RE: make valve have no turn stuck point? help

Can you give some background on what the valve is for, so we can help you script your puzzle? Do you want the wheel to open a door, like in the Control Room, or do you just want it to never end, without any actual input on the game?

Confusion: a Custom Story - Ch1 for play!
http://www.frictionalgames.com/forum/thread-15477.html
About 50% built.
Delayed for now though!
09-08-2012, 01:48 PM
Website Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#4
RE: make valve have no turn stuck point? help

i imagine to use the spinning valve to like grind a dagger. i have figured out the dagger part but i have not been able to make the wheel spin continuesly
09-09-2012, 10:17 AM
Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#5
RE: make valve have no turn stuck point? help

really? no one know how to turn a stuck point of?

and exawolt: i does not seem to work. it still gets stuck at a specific point
09-09-2012, 02:28 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#6
RE: make valve have no turn stuck point? help

Assuming you want a valve that can spin forever, but is still a "wheel" - Your best bet is making a custom entity, and abusing floating point a little.

Firstly, you are going to want to make a copy of the ".ent" file of the valve/wheel entity you want to be able to spin forever. I'll assume for the moment it is "valve_iron.ent".

You will then want to call your copy something like "valve_iron_infinite.ent", and place this in your custom stories entities folder (or wherever you are storing entities for your CS/FC).

The next step is to open up the "valve_iron_infinite" entity file in notepad (or your text / xml editor of choice) - we must edit the xml data in a text editor as the model editor doesn't permit us to do what we are about to do. You then want to find the lines that say:
<Var Name="MinLimit" Value="-180" />
<Var Name="MaxLimit" Value="180" />
If you are using a different entity the values might be different. We now simply change this to:
<Var Name="MinLimit" Value="-INF" />
<Var Name="MaxLimit" Value="INF" />
And save the entity file. You can then place it in your map and it should spin forever (or a very very long time). I can't say for certain that this will be side-effect free, but it seemed to work OK for me when I was testing it.
(This post was last modified: 09-09-2012, 03:29 PM by Apjjm.)
09-09-2012, 03:26 PM
Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#7
RE: make valve have no turn stuck point? help

thanks man! it worked perfectly! do you have any suggestions on how to make the wheel spin itself?
09-09-2012, 03:59 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#8
RE: make valve have no turn stuck point? help

You can try SetWheelAngle("Wheel", [NUMBER], true) I suppose, but it won't spin whilst the player is holding the wheel.
09-09-2012, 05:15 PM
Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#9
RE: make valve have no turn stuck point? help

thanks for reply. but sadly that only spins a wheel to a certain point and not continuesly
09-09-2012, 05:43 PM
Find




Users browsing this thread: 2 Guest(s)