UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Shadows of Evil cable car

broken avatar :(
Created 7 years ago
by Doodles_Inc
0 Members and 1 Guest are viewing this topic.
2,582 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
Signature
if I surprised you, it was because you underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
Is it already possible to remake? How complex would be the script? (Like, how much knowledge in C scripting I would need to have) I don't really think that anyone would do a script of the SoE cableway and share ir with everyone, but, I would like to know if it's possible already to do it.
Last Edit: June 30, 2017, 12:52:57 am by Doodles_Inc
Marked as best answer by Doodles_Inc 7 years ago
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Let he who has not sinned cast the first stone.
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
It is possible, definitely. First you would use wraith to export the models, then place the train in radiant as a script_model. After that put in some clip brushes so the train has collision, make sure the clips are all script_brushmodels. As far as moving the train, you could set up a network of "path" nodes, which are script_origins, line them up evenly spaced apart, and make sure to rotate them when going around curves. That way you can rotate the train to the angles of the script_origins so it always faces the right way. The scripting would go something like: (pseudo)

Code Snippet
Plaintext
//Remember to make the train model in radiant a script_model, and clip it with script_brushmodels
//Then give the train a targetname - train_test. Now make the train target each clip. Select train, then clip, hit W (repeat for all clips)

function train_init()
{
train = GetEnt("train_test", "targetname");
train_clips = GetEntArray(train.target, "targetname");

foreach(clip in train_clips)
{
clip SetMovingPlatformEnabled(true);
clip EnableLinkTo();
clip LinkTo(train);
}

//You would need to set up script_origins in radiant along the path the train will travel
//We'll call these 'nodes' for now
//From the starting node, link the first node to the 2nd, 2nd to the 3rd, until you reach the last node.
//Give the first node a script_noteworthy - start_node
//And the last node a script_noteworthy - end_node
//The train should already be at the start_node
train.start = GetEnt("start_node", "script_noteworthy");
train.trig = GetEnt("your_trig", "targetname");
train thread train_move();
}

function train_move()
{
self.trig waittill("trigger");
next_node = self.start;

while(1)
{
next_node = GetEnt(next_node.target, "targetname");
self MoveTo(next_node.origin, 1);
self RotateTo(next_node.angles);
self waittill("movedone");
if(next_node.script_noteworthy == "end_node")
{
break;
}
}

}

This is off the top of my head, but this general method does work. Me and another mapper had this system pretty polished until my ssd failed, so I don't have any of the scripts or else I'd give them to you. Keep in mind you have to set up logic for the doors opening/closing, and for different paths the train will take. Again this script isn't complete by any means. This should get you started though.
Last Edit: July 03, 2017, 04:06:39 pm by Archaicvirus
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
Awesome man, I hope you got this working, would love to see it in action!
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
Awesome man, I hope you got this working, would love to see it in action!
It's almost ready, I stopped using the mod tools for a while, but, I think that I will release my full map this month (december)
broken avatar :(
×
broken avatar :(
Location: usSouth Florida
Date Registered: 10 July 2016
Last active: 12 months ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Archaicvirus's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Archaicvirus's Contact & Social Links
Sounds good, let me know when you do. Ill have to download it

 
Loading ...