[Tutorial] How to Change your Starting Weapon

broken avatar :(
Created 1081 days ago
by wumbi
0 Members and 1 Guest are viewing this topic.
7,269 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 August 2016
Last active: 374 days ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
wumbi's Groups
wumbi's Contact & Social Links
This post will  teach you how to change the starting weapon on your map.
Step 1: Naviagte to root/usermaps/scripts/zm/mapname.gsc

Step 2: Below this line:

zm_usermap::main();

Add this code
	startingWeapon = "ray_gun";
weapon = getWeapon(startingWeapon);
level.start_weapon = (weapon);

Make sure to change ray_gun to the weapon of your choice. List of current weapons included in the stock map can be found here: https://confluence.ugx-mods.com/display/UGXMODS/BO3+%7C+Weapon+List

Step 4. Save and close, then check the Link box when building your map or else changes WILL NOT TAKE EFFECT!

Done! You have successfully changed your starting weapon!
broken avatar :(
×
broken avatar :(
Location: caNS
Date Registered: 29 August 2014
Last active: 1062 days ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Why Not Zoidberg
×
CanadianTyler's Groups
Works Great  :D
broken avatar :(
×
broken avatar :(
Location: esGalicia
Date Registered: 27 January 2015
Last active: 751 days ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
peleon02's Groups
peleon02's Contact & Social Linkspeleonytpeleon02
Works great, Can you put that when you die the weapon be the start weapon?
broken avatar :(
×
broken avatar :(
Location: gbEurasian Plate, The Crust, Earth, The Solar System, The Milky Way
Date Registered: 4 November 2014
Last active: 112 days ago
Posts
176
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Favourite Languages: PHP CSS HTML JS C# SQL XSLT
Signature
Walk your Talk
×
josh1600's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
I just write:
level.start_weapon = getWeapon("weapon_name");
No need for 3 lines.
Last Edit: February 04, 2017, 05:07:04 pm by josh1600
broken avatar :(
×
broken avatar :(
Location: es
Date Registered: 21 September 2014
Last active: 720 days ago
Posts
28
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Minepro14's Groups
Minepro14's Contact & Social Links
Works great, Can you put that when you die the weapon be the start weapon?

//playing coop

level.default_laststandpistol = GetWeapon("your weapon");

//playing solo

level.default_solo_laststandpistol = GetWeapon("your weapon");
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 24 April 2017
Last active: 29 days ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Galerame's Groups
Galerame's Contact & Social Links
Helo, I making a challange map with just wonder-weapons like ray-gun, thundergun, etc. And want the weapons to change randomly every level. (and if it go) I also want the script to know "if" the weapon is upgraded, you will get a randomly upgraded of this wonder-guns. Had been fun if you help me.

 

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 Twitch
Loading ...