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

Extra perk slot?

HOT
broken avatar :(
Created 10 years ago
by FreeFall
0 Members and 1 Guest are viewing this topic.
7,261 views
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
I was wondering if it is possible when a player hits a trigger the all player(s) gain one extra perk slot. This is something that I would really like to implement in my next map to give it a different feel.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
i can help you out five me a min

Double Post Merge: September 22, 2014, 08:30:21 pm
http://paste.md-5.net/betecivoje.erl
Last Edit: September 22, 2014, 08:30:21 pm by arceus
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
i can help you out five me a min

Double Post Merge: September 22, 2014, 08:30:21 pm
http://paste.md-5.net/betecivoje.erl
Where does this go?
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
http://paste.md-5.net/bahoqafepu.erl
use this instead put it at the bottom of mapname.gsc and call it in init()
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
http://paste.md-5.net/bahoqafepu.erl
use this instead put it at the bottom of mapname.gsc and call it in init()
Ok thanks, and how of I call it in init()?
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
at the top of the script under here:
   
Code Snippet
Plaintext
maps\_zombiemode_blockers_new::init();
maps\_zombiemode_spawner::init();
maps\_zombiemode_powerups::init();
maps\_zombiemode_radio::init();
maps\_zombiemode_perks::init();
maps\_zombiemode_tesla::init();
maps\_zombiemode_dogs::init();
maps\_zombiemode_bowie::bowie_init();
maps\_zombiemode_cymbal_monkey::init();
maps\_zombiemode_betty::init();
maps\_zombiemode_timer::init();
maps\_zombiemode_auto_turret::init();
so it looks like this
   
Code Snippet
Plaintext
maps\_zombiemode_blockers_new::init();
maps\_zombiemode_spawner::init();
maps\_zombiemode_powerups::init();
maps\_zombiemode_radio::init();
maps\_zombiemode_perks::init();
maps\_zombiemode_tesla::init();
maps\_zombiemode_dogs::init();
maps\_zombiemode_bowie::bowie_init();
maps\_zombiemode_cymbal_monkey::init();
maps\_zombiemode_betty::init();
maps\_zombiemode_timer::init();
maps\_zombiemode_auto_turret::init();
perk_slot();
Last Edit: September 22, 2014, 11:32:13 pm by SajeOne
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
I did everything you said and I gives me this error:


Also is this the correct kyp for the trigger_damage?
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
you forgot the important step:
at the end of the gsc press enter twice and copy the code arceus gave you

also:
make the trigger a "trigger_use" not trigger damage
Last Edit: September 23, 2014, 02:23:12 am by jjbradman
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
you forgot the important step:
at the end of the gsc press enter twice and copy the code arceus gave you

also:
make the trigger a "trigger_use" not trigger damage

I did put the code he gave me at the end of my mapname.gsc

And I want to make it something you shoot, not something players go up to and activate"
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 7 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Is perk_slot() function in the same GSC?
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
Is perk_slot() function in the same GSC?
Perk_slot() is in my _zombiemode.gsc

And this code is at the bottom of my mapname.gsc
Code Snippet
Plaintext
perk_slot()
{
  activate_trig = getent ("perk", "targetname");
  activate_trig waittill ("trigger");
  {
    level.perk_limit++;
    self delete;
  }
}
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 7 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Perk_slot() is in my _zombiemode.gsc

And this code is at the bottom of my mapname.gsc
Code Snippet
Plaintext
perk_slot()
{
  activate_trig = getent ("perk", "targetname");
  activate_trig waittill ("trigger");
  {
    level.perk_limit++;
    self delete;
  }
}
I assume you haven't included it in the GSC.
So where you call perk_slot() link it to where it's located so if it's the map:
maps\mapname::perk_slot()
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
did you put this: perk_slot() or this: perk_slot();
if you did the first one put the second one in init()
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 24 June 2014
Last active: 5 years ago
Posts
212
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
FreeFall's Groups
FreeFall's Contact & Social Linksfreefall1151joebob59FreeFall115
did you put this: perk_slot() or this: perk_slot();
if you did the first one put the second one in init()
Ok, I did everything you said and I get this error:


Heres my _zombiemode.gsc:

And my mapname.gsc:

broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 7 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Remove the self delete; (delete is actually a function which should be written like so: delete()). No idea why you'd want it there.

 
Loading ...