Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Hello this is my first post and "tutorial". This fonction is inspired by NGcaudle tutorial (buyable ending) so thx.
This have for effect to buys with a trigger a bonus spawnable in a script_struct. Exemple for max ammo.
Step 1- Go to yourmapname.gsc, u can find this file in Blackops/raw/maps and open it.
Step 2- Find this line in youmapname.gsc "maps_zombiemode::main();" below past this :
Step 3 - At the bottom of this same file "yourmapname.gsc" paste this
You can change variable of text u want say and the cost, as well as your bonus type.
I don't know if it's necessary but I advise you to copy the following files in your mods/map. (if you don't have this map folder create it).
go to blackops/raw/maps:
_zombiemode_powerups
And
_zombiemode_score
this is for the function access thread
Steps4 go to radiant ---> and create a trigger use with thats keys:
targetname "max_ammo" and target "maxammo_spawn"
(Image removed from quote.)
And a script_struct with thats key:
targetname maxammo_spawn
(Image removed from quote.)
The bonus spawns at the location of the script_struct that can be activated by the trigger. Because the trigger targets the struct.
Don't forget to build and compile. You'r done.
Credit:
Samoth
NGcaudle
Tom_BMX
Vertasea
great dude, I made the "instant kill" bonus work, a pretty useful and logical function, can you still teach a lesson, for example, how to add a purchased elevator that works after turning on the power, with a closing door, and so that it makes sounds when you ride in it, and also preferably with switching light bulbs (red-green, like in a trap)?That would be very wonderful.
Double Post Merge: February 11, 2024, 03:44:09 pm
great dude, I made the "instant kill" bonus work, a pretty useful and logical function, can you still teach a lesson, for example, how to add a purchased elevator that works after turning on the power, with a closing door, and so that it makes sounds when you ride in it, and also preferably with switching light bulbs (red-green, like in a trap)?That would be very wonderful.