Modme Forums
Menu:

HELP !! How can i change perk machine model !!

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: kastro1997
Hello,

I want to change the perk machine model ,to what ever model i use ,

For example i want to use a bottle model , And when ever i press [use] on the bottle i want to get the same animation as the perk machine !!

I tried to mess around with perk machine model but ,I end up with the same model inside the map

I'm really newb at the scripting , know the basic stuff only ,


ModmeBot:

Reply By: kastro1997

kastro1997
Hello, I want to change the perk machine model ,to what ever model i use , For example i want to use a bottle model , And when ever i press [use] on the bottle i want to get the same animation as the perk machine !! I tried to mess around with perk machine model but ,I end up with the same model inside the map I'm really newb at the scripting , know the basic stuff only ,

!! Anyone ?


ModmeBot:

Reply By: Wild
http://natesmithzombies.com/tutorials/perk_model.html


ModmeBot:

Reply By: kastro1997

AGC
http://natesmithzombies.com/tutorials/perk_model.html


Thank you ,

Can you help me please! because the instructions are not clear

What i did is i opened my map.gsc

I added thees underneath

function main()
{
level thread new_perk_model( "vending_sleight", "specialty_fastreload" );

And so i added this at the bottom

function new_perk_model( radiant_machine, str_name )
{
    level._no_vending_machine_auto_collision = true;
    level flag::wait_till( "all_players_connected" );
    perk_machine_model = GetEnt( radiant_machine, "targetname" );
    perk_machine_model SetModel( "tag_origin" );
    level waittill( str_name+"_power_on" );
    perk_machine_model SetModel( "tag_origin" );
    perk_machine_model MoveZ( -1000, .05 );
}

What i know is i can change the "vending_sleight", "specialty_fastreload" to "vending_jugg", "specialty_armorvest" or what ever perk i want


and i did what it says in the instructions

in radiant i changed the perk prefab model to a bottle model !! , But after i compile the map , Nothing is changed !!


ModmeBot:

Reply By: kastro1997


ModmeBot:

Reply By: kastro1997
Hello !!! No one can help me a this ?