Call of Duty: Black Ops III

Call of Duty: Black Ops III

Not enough ratings
[Scripting] Jesus Effect
By Mysti and 1 collaborators
   
Award
Favorite
Favorited
Unfavorite
Introduction
Hey everyone, this tutorial was requested from a guy from UGX so I thought I'd write it up here in Johnathon fashion. It's going to be a simple tutorial on how you can make characters walk on or through clips that were previously impassable.

So here goes!
Radiant Requirements
So for starters, you're going to need a Script_Brushmodel

Give it the following KVP
Key
Value
targetname
Jesus_Clip

You can edit the targetname to whatever, but I'll use Jesus_Clip. Now we're going to need a Trigger Use

We don't have to do much with this, just give it the following KVP and set it up where you'd like.
Key
Value
targetname
Become_Jesus
Now you can save your map we're done with Radiant for now.
Script Requirements
So, you can either make your own GSC or just add it to your MAPNAME.GSC as it's not much code I've just added mine to my mapname, but anyway. Here goes.

First off, add
GetEnt("Jesus_Clip","targetname") SetPlayerCollision(true);
in your main() function under
level.pathdist_type = PATHDIST_ORIGINAL;

Then put
level thread Jesus_Walk();
Under that, this function is going to watch for a trigger activate, now it can be upto you weither this is triggered by power or by user intevention, I am going with user intevention since it makes sense.

Now below all the other functions, put this
//Hint String For Trigger #define JESUS_HINT "Press and hold ^3[{+activate}] ^7to become Jesus!" //Hint Icon For Trigger #define JESUS_ICON "HINT_NOICON" function Jesus_Walk() { Trigger = GetEnt("Become_Jesus", "targetname"); Trigger SetHintString(JESUS_HINT ); Trigger SetCursorHint(JESUS_ICON); do { Trigger waittill("trigger"); GetEnt("Jesus_Clip","targetname") SetPlayerCollision(false); Trigger Delete(); }while(true); }

That does it, that's all you need. Now when the user activates the trigger the brush model can be walked through as if it weren't there.
Final Words
Like I said, this tutorial was requested from UGX, so here it is, I should have added toggle Jesus, but that can be up to you to figure out, if you get stuck or anything just let me know and I might consider working it out, but to be honest I did hack this code together using my current script setup and it made development a tad difficult, oh well it works.

Thanks for reading, Johnathon.