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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - jjbradman

i only want to know this

Code Snippet
Plaintext
if(!IsDefined

would mean "if "is not" defined"?

so i can make something like this

if ( level.player !IsTouching( lol ) )

thanks for your attention :)
10 years ago
will ugx mod have the bank feature as in bo2?
10 years ago
first of all thanks to yaPh1l and BluntStuffy for the help :)
create one gsc in your maps folder called:
Code Snippet
Plaintext
car_run.gsc
and put this inside:

Code Snippet
Plaintext
#include common_scripts\utility; 
#include maps\_utility;
#include maps\_zombiemode_utility;

car_run_trig()
{
thread bomb_run();
}

bomb_run()
{
zombie_cost = 3500;
trigger = getEnt("car_run_trig","targetname");
trigger setHintString("need to turn on power");
trigger SetCursorHint( "HINT_NOICON" );

flag_wait("electricity_on");

wait 1;

while(1)
{
//players = getplayers();
plane = getEnt("car","targetname");
plane_path = GetVehicleNode("car_path_start","targetname");
trigger setCursorHint("HINT_NOICON");
trigger setHintString("Press &&1 to ride jeep [Cost: "+zombie_cost+"]");

trigger waittill("trigger",player);

if(player.score >= zombie_cost)
{
player maps\_zombiemode_score::minus_to_player_score( zombie_cost );
trigger setHintString("Please wait, Jeep is in Use");

plane AttachPath( plane_path );
plane thread maps\_vehicle::vehicle_paths(plane_path);
maps\_vehicle::vehicle_init(plane);
thread reason( plane, plane_path, trigger );
//plane StartPath( plane_path );
wait 50;
}
}
}

reason( plane, plane_path, trigger )
{
tag1 = plane gettagorigin( "tag_driver" );
tag2 = plane gettagorigin( "tag_passenger" );
tag3 = plane gettagorigin( "tag_passenger2" );
tag4 = plane gettagorigin( "tag_passenger3" );
multiple1 = getEnt("multiples123","targetname");
players_touching = get_players_touching( multiple1 );
        for(i=0;i<players_touching.size;i++)
{
        players_gun = players_touching[i] GetCurrentWeapon();       
players_touching[i] PlayerLinkTo( plane, "tag_driver", 1.0 );
        players_touching[i] giveWeapon("tesla_gun");
        players_touching[i] SwitchToWeapon("tesla_gun");
        players_touching[i] DisableWeaponCycling();
        players_touching[i] EnableInvulnerability();

        plane StartPath( plane_path );

wait 20;

        players_touching[i] Unlink();
    players_touching[i] takeweapon("tesla_gun");
    players_touching[i] SwitchToWeapon(players_gun);
    players_touching[i] EnableWeaponCycling();
    players_touching[i] DisableInvulnerability();

    trigger setHintString("Jeep is Refueling");

        wait 30; //TIME IT WILL WAIT TO REFUEL THE JEEP

        thread bomb_run();

}

}

get_players_touching( ent )
{
p= get_players();
array = [];
for(i=0;i<p.size;i++)
{
if(p[i] IsTouching(ent) && is_player_valid(p[i]) )
{
array[array.size] = p[i];
//iPrintLn("it is defined ^1" + p[i].playername);
return array;
}
}
}

and add

Code Snippet
Plaintext
 thread maps\car_run::car_run_trig();

after

Code Snippet
Plaintext
maps\_zombiemode::main();

in your_map_name.gsc

note: inside car_run.gsc you can change the
Code Snippet
Plaintext
wait 30;
to change the time it will take to refuel the car

and the
Code Snippet
Plaintext
wait 10;
must be changed to the exact time it the jeep will take in making all its run

in

Code Snippet
Plaintext
zombie_cost = 3500;
you can adjust the price you want to give it

then in radiant you must know how to make vehicle path because you must know how to change the prefab to fit your map, so if you need any help take a look at ugx airstrike tut on the wiki http://ugx-mods.com/wiki/index.php?title=Airstrike

put this prefab in you map_source folder

https://www.mediafire.com/?yd4cxl8zn7z314c

and put in your map(remmber to do obvious things like making your own vehicle path and removing the brush(the floor) inside the prefab lol )

and done! :D just change the vehicle path to your needs and remember to put the last node in the same place of the start node :)

credits:
bamskater for the chopper script which helped a lot
ugx for the aistrike tutorial xD
10 years ago
 ok i made this script(ripping most of it from the mightydud) which is supposed to store your weapon like in tranzit and refill its ammo over time but after adding the script the trigger doesnt even shows in game .-. its s trigger use can anyone help me :(

Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_zombiemode_weapons;

main()
{
self.storagecost = 500; // Set the cost of the storage/regenerate ammo
trig = getEnt("storage_trig","targetname");
startorig = getEnt("storage_start","targetname");
endorig = getEnt("storage_end","targetname");
level.upgrade = 0;
level.take = 1;

thread storage_trig(trig, startorig, endorig);
}


storage_trig(trig, startorig, endorig)
    {
      trig setHintString("Requires Power");
      trig SetCursorHint( "HINT_NOICON" );
      flag_wait("electricity_on");
          while(1)
              {
                trig setHintString("Press f to store your weapon["+self.storagecost+"]");
                trig waittill("trigger",player);
                if( player.score >= self.storagecost )
                    {
                      player playsound( "cha_ching" );
                      player maps\_zombiemode_score::minus_to_player_score( self.storagecost );
                      current_weapon = player GetCurrentWeapon();
                      trig setHintString("Storing...");
                      weapon_stock_ammo = player getWeaponAmmoStock(current_weapon);
                      weapList = player GetWeaponsListPrimaries();
                      player takeweapon(current_weapon);
                      player switchtoweapon(weapList[1]);
                      spawnweapon(current_weapon, startorig, endorig, player);
                      thread give_ammo();
                      trig setHintString("Press f to take your weapon out of storage");
                      trig enable_trigger();
                      trig waittill("trigger",player);
                      spawngive(player);
                      giveback(current_weapon,player,0);
                      level.stop = 1;
                      player setWeaponAmmoStock(current_weapon, (weapon_stock_ammo+level.addammo));
                      wait 0.5;
                      level.stop = 0;
                      level.addammo = 0;
                    }
               }
    }

spawnweapon(weapon, startorig, endorig, player)
{
level.modeln = spawn( "script_model", startorig.origin );
modelname = GetWeaponModel(weapon);
level.modeln setmodel(modelname);
level.modeln.angles = self.angles +( 0, 90, 0 );
level.modeln moveto( endorig.origin,5,1,1);
wait 5;
}
spawngive(player)
{
timer = 2;
on = 0;
while(1)
{
level.modeln moveto( player.origin+(0,0,50),timer,0,0);
on = on+1;
wait 1;
if(on == 5){ break; }
}
level.modeln Delete();
}

rotate(entity, time)
{
on = 0;
while(1)
{
entity rotateYaw(360,1);
on = on+1;
if( on == time )
{
break;
}
wait 1;
}
}

//devmap nazi_zombie_family

give_ammo()
{
level.addammo = 0;
while(1)
{
level.addammo = level.addammo+1;
wait 0.5;
if(level.stop == 1)
{
 break;
}
}
}

giveback(weapon, player, up)
{
weapList = player GetWeaponsListPrimaries();
current_weapon = player GetCurrentWeapon();
if(weapList.size >= 2)
{
player takeweapon(current_weapon);
}
if(up == 0)
{
player giveweapon(weapon);
player switchtoweapon(weapon);
}
}

Post Merge: January 20, 2014, 03:45:35 am
.___. somebody help? x'c
10 years ago
now thanks to hexzombies the map has an awsome custom loading screen!!!!:D




http://s1057.photobucket.com/user/jjbradman/library/?sort=3&page=1

features:
-bo quick revive
-vulture aid
-kino.style teleporter
-electric cherry
-cod ghosts viewhands
-black ops1 perks
-black ops2 perk shaders for stock perks
-double tap 2.0
-panzer soldat(by bluntstuffy :D)
- added custom weapons
- zappers
- weapon storage
- pavelow(chopper gunner)
-origins "soul chest"
-origins "dig sites"
-bank(not like tranzit)
-zipline
-typewritter intro
-kino_box_lights
-origins style headshots
- car ride
- elevators
- five teleporters
- free usable turrets
-random spawn weapons
- animated gifs
-very large map
-you can acces all the buildings

Mapper: me lol xD
Scripters who have helped a lot: BluntStuffy, YaPh1l....they realy helped fixing most of my broken stuff xD

Credits:
-jzob
- Fatboy Pro(weapons :D)
- Jr-imagine(bo perks)
-blunstuffy(panzer, weapon storage, countless help)
-tom_bmx
-dualVII
-DarkWhiss
-i'll add more people when map is released.






http://imgur.com/a/S5JxL
and some more pics





10 years ago
i made this trying to script an heli but it it gives me tons of error like uninitialized variable player,helicopter, etc,etc, can some help me find whats wrong with it? :(

Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

init()
{
self.heli_cost = 500;
helicopter = getEnt("helicopter","targetname");
path = getEnt("moveto","targetname");
trig = getEntArray("cop_trig","targetname");

thread helicopter_think(trig);
}

helicopter_think(trig)
{
while(1)
{
players = get_players();
for(i=0;i<players.size;i++)

trig waittill("trigger",player);
{
player PlayerLinkTo(helicopter);
self.current_weapon = player GetCurrentWeapon();
player giveweapon("panzerschrek_zombie_upgraded");
player SwitchToWeapon("panzerschrek_zombie_upgraded");
player DisableWeaponCycling();
player EnableInvulnerability();
player HideViewModel();

helicopter MoveZ(700,10,1,1);

wait 5;

helicopter MoveTo(path,20,1,1);

wait 5;

player takeweapon("panzerschrek_zombie_upgraded");
player SwitchToWeapon(self.current_weapon);
player EnableWeaponCycling();
player DisableInvulnerability();
player ShowViewModel();
player Unlink();

wait 30;
}
}
}

nevermind fixed all syntax problems by changing
Code Snippet
Plaintext
player
to
Code Snippet
Plaintext
players[i]

but the script doent work how i wanted D: the heli just moves at game game start without me going to the trig :l
10 years ago
anyone here knows how can i script a car, so you  can drive it by paying and you could kill zombies with it? :oo
ps. thanks for any help :)
10 years ago
lol tittle says it all xP im remaking the map using only textures from waw mod tools and i was thinking in sharing the map file :D  https://www.mediafire.com/?3comm2ivvp2b32j
10 years ago
anyone knows how to make a material glow? .-. like a bulb or a tv.
10 years ago
ok im using ugx airstrike tutorial to make an helicopter travel, the problem is that i want the player to move free inside the heli, but i cant get the clipping brushes to get attatched to the heli. thanks if someone can help me :)
10 years ago
ok i'll be giving away custom buildings or prefabs so people can make maps more easily and concentrate in scripting and other cool stuff :D heres one pic of what i started working on 1 hour ago
if you want something ask me for it :P
10 years ago
well i got this error trying to launch my map!!! D: help plz!!
10 years ago
ok so after 5 months of leaving this project untouched i can say its dead but i want to share what i made so far.
here i present my first map :D also my last :( nazi_zombie_diefreude

http://www.mediafire.com/download/dap2xiivmpj9alm/diefreude.part1.rar
http://www.mediafire.com/download/abaatg67v2qmojx/diefreude.part2.rar

it comes in 2 parts  :o just uncompress both rars on your mods folder. bye


10 years ago
it gives me that error and crash :s can someone help?
11 years ago
is there a way to hide atatchments in weapons by making a script or doing anything else? o.O
thanks if you can help me :D
11 years ago
Loading ...