Tutorial Black Ops 1 - All about Weapons GSC Tutorial

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,745
Reaction score
2,831
Points
1,053
Hello guys,
today I was working on my new menu and I found out some stuff for black ops 1. :smile: I do not take any credits due that it is gamebased and developed by treyarch! :smile: I hope it helps you!

To give a weapon in black ops 1:
PHP:
self giveWeapon("weaponname");

For example, this will give the player a ak74u.
PHP:
self giveWeapon("ak74u_mp");

The function giveWeapon has these inputs in black ops 1:

self giveWeapon(<weaponname>, 0, self calcWeaponOptions ( <camo>, <lens>, <reticle>, <tag>, <emblem> ));


<weaponname>
Enter here the weapon name of the weapon you want to give:
You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.


<camo>
Enter a int to define a camo:
Code:
0-None
1- Dusty
2-Ice
3-Red
4-Olive
5-Nevada
6-Sahara
7-ERDL
8-Tiger
9-Berlin
10-Warsaw
11-Siberia
12-Yukon
13-Woodland
14-Flora
15-Gold

Example:
Code:
self giveWeapon("famas_mp", 0, self calcWeaponOptions ( 12, 0, 0, 0, 0 ));


<lens>
Enter a int number to define the lens color (RGB Color):
Code:
0-255 255 255
1-255 0 0
2-0 0 255
3-0 255 0
4-255 75 0
5-255 255 0

<reticle>
Change the number of <reticle> to number of your reticle.
Code:
1-Dot
2-Semi-Circle
3-Lines With Dot
4-Circle
5-Smiley Face
6-Arrows Horizontal
7-Arrows Vertical
8-Arrows With Dot
9-Bones
10-Burst
11-Circle Within A Circle
12-Circle
13-Circle Outline
14-Circle Outline With DOt
15-Circle With Crosshairs
16-Circle With Outer Lines
17-Circle with Inner Lines
18-Circle With Arrows
19-Circle With Triangles
20-Outer Crosshairs
21-Small Crosshairs
22-Large Crosshairs
23-Crosshairs
24-Crosshairs With Dot
25-Diamond
26-Diamond Outline
27-Heart
28-Radiation
29-Skull
30-Square
31-Square Outline
32-Square With Crosshairs
33-Star
34-Three Dots
35-Treyarch
36-Triangle
37-Outer triangles
38-X
39-X With Dot
40-Ying Yang


<tag> <emblem>
Tag and emblem are simple two boolean which are define if your emblem/tag will display on the weapon:
Code:
1-Display
0-Do not display it


That is everything for now! I will add later all about the attachments and grenades. :smile:

If you have any question, do not hesitate to ask it below!
Regards,
CabCon.
 

BlackOpsModder

Veteran
Messages
80
Reaction score
20
Points
578
How can i make the box give me always a certain weapon sometimes? like the tgun?
And how can i make it back to normal?
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,745
Reaction score
2,831
Points
1,053
Can you help me with a code?
Unfortunately I'm currently super busy with work so I'm not able to help you right now. :smile:

However check for a list (array) with all weapons for the random function for the box. Make this list empty and put into it only the weapon which you would like to give the player. That would be a quite quick way to do it.

Maybe someone else can help you as well. :smile:
 

BlackOpsModder

Veteran
Messages
80
Reaction score
20
Points
578
Unfortunately I'm currently super busy with work so I'm not able to help you right now. :smile:

However check for a list (array) with all weapons for the random function for the box. Make this list empty and put into it only the weapon which you would like to give the player. That would be a quite quick way to do it.

Maybe someone else can help you as well. :smile:

Ikr about this method, I would like a method that I could enable to get all guns again in game again to activate/deactivate through...
 
Top