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

[Drag and Drop] "Five" Style Teleporters for BO3

broken avatar :(
Created 2 years ago
by djluvorng
0 Members and 1 Guest are viewing this topic.
835 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 May 2013
Last active: 1 month ago
Posts
21
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Youtube.com/ornggaming
Signature
youtube.com/ornggaming
×
djluvorng's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
djluvorng's Contact & Social Linksdjluvorng
 
Hi! been working on this for a while, and finally feel confident enough to release it (DM me with any and all bugs bc I am sure there are some).
This script tutorial and prefab combo is bacically a drag and drop adaptation the teleporters from the map "five" albeit modified for general use with a few new changes and features. (Mostly on the zombies side.)

 
Instructions:
1) Drag the folders into your root directory.
-------------------------------------------------
2) Open useraliases.csv in share>raw>sound>aliases and add the following lines:  
 
Code Snippet
Plaintext
# ====== Tele Sounds =====
    evt_teleport,,,orng\tele\evt_teleport_PCM.wav,,,UIN_MOD,,,,,,,,,0,0,80,80,0,1000,1000,,,,,,,,,,,,,,,,2d,front,,NONLOOPING,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    evt_teleport_out,,,orng\tele\evt_teleport_out_PCM.wav,,,UIN_MOD,,,,,,,,,0,0,80,80,0,1000,1000,,,,,,,,,,,,,,,,3d,front,,NONLOOPING,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
   
-------------------------------------------------
3) Open your mapname.gsc located in usermaps\"mapname"\scripts\zm and add:
    Add this to your mapname.gsc:    
Code Snippet
Plaintext
// 5 style Teleporter
    #using scripts\orng\teleporter;
   
    Underneath:
    #using scripts\zm\zm_usermap;
 
   
    add:
Code Snippet
Plaintext
/////
thread init_power_orng();
/////
   after:
   
Code Snippet
Plaintext
///// 
zm_usermap::main();
/////

    then add:
   
Code Snippet
cpp
/////
function init_power_orng()
{
    level flag::wait_till("power_on");
    teleporter::teleporter_init();
}
/////

    At the end of the file.
   
   
--------------------------------------------------
4) Open your maps zone file located in usermaps\"mapname"\zone_source and add these lines:    
Code Snippet
Plaintext
//Teleporter
fx,dlc0/factory/fx_teleporter_beam_factory
scriptparsetree,scripts/orng/teleporter.gsc
--------------------------------------------------
5) Add the prefabs to your map in map_source\_prefabs\orng:
    - static_tele_pad_base.map is an optional teleporter that only teleports to the static_tele_pad.map group (unless specified otherwise). (Can be more than one.)
    - static_tele_pad.map is an optional teleporter for the static_tele_pad_base.map group to go to (unless specified otherwise). (Can be more than one.)
    - tele_pad.map is the teleporter and final position after teleporting. Use as many as you like.
    - zombie_tele_point.map is where the zombie will end up after following the player through the portal. This is optional and use as many as you like. (picks the closest to the player.)
--------------------------------------------------
6) Compile your map as per usual and you are done!
--------------------------------------------------
EXTRAS) There are a couple of options in the teleporter.gsc script (located in share\raw\scripts\orng)    
 
Code Snippet
cpp
level.zom_timeout= 20;        //Change to the timeout for the zombies to get to the teleporter "undefined = infinite (only recommend for specific use cases)"
level.target_distance= 1000; //Change to max distance to the portal that zombies can be to get attracted (else kill) "undefined = infinite (only recommend for specific use cases)"
level.how_close=       100; //Change to how close the player has to be to cancel zombie teleport "undefined = ignore (only recommend for specific use cases)"
level.cooldown=        10; //Cooldown time for the teleporters in seconds
level.random_static=   1; //Each number higher than 0 means the static teleporters have a greater chance to go to a random tele.
                         // ^^ Example: 0 = 0% 1 = 50% (Idea from NSZ Kino Tele)

 
Spoiler: click to open...
You can also change the fx and add sounds to be something a little less ghetto xD.
--------------------------------------------------
mega.nz

 
 
Last Edit: September 04, 2022, 06:51:49 am by djluvorange

 
Loading ...