Are the tutorials useful?
Yes, they have helped me
55.56%
5
No, they suck
0%
0
I R 1337
22.22%
2
Make more, I learn a lot
11.11%
1
Your tutorials suck and you even more
11.11%
1
9 vote(s)
* You voted for this item. [Show Results]

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Random things
#1
Hello, OMA

A random tutorial with a few random things


This is a better way of making a radiusdamage, Wink, is far completer

Code:
self RadiusDamage(origin,radius,max damage,min damage,things to dont get affected by radiusdamage,smeansofdeath,weapon);

This could be an example in for example a explosive barrel

Code:
self RadiusDamage(box.origin,300,120,30,undefined,"MOD_EXPLOSIVE","barrel_mp");


Now a explanation of the commands AnglesTO:

There exist 3 commands, one for each direction:

anglestoforward(angles)
anglestoup(angles)
anglestoright(angles)

Example of use:

Code:
self.origin+anglestoforward(self getplayerangles())*500;

That example will give the position that is forward to your angles 500 in distance.

Code:
self.origin+anglestoforward(self getplayerangles())*-500;

This one will give you the position that is back to your angles 500 in distance.(the opposite)

The other 2 commands: anglestoup and anglestoright work in same way. If you want "anglestodown" or "anglestoleft" just multiply the angles by -1.


Now a explanation of this command, setactionslot, what it does is to add something to the dpad(such as killstreaks and weapons)

Code:
self _setActionSlot(slot,info,extra info);

Example of use:

Code:
self _setActionSlot(4,"weapon","javelin_mp");

This will put a javelin that you activate by pressing 4, like a killstreak.


Now, another example of a command that changes your camera position.

Code:
self CameraLinkTo(object,tag);

Example:

Code:
self CameraLinkTo(OMA,"tag_origin");

You also have the command that make you addapt your controls to a certain entity:

Code:
self ControlsLinkTo(OMA);

Use this to delete those commands:

Code:
self ControlsUnlink();
self CameraUnlink();


Now the use of a very good command, Moveto, works like this:

Code:
object MoveTo(position,time in seconds);

Example:

Code:
object MoveTo(self.origin,2);

Well thats all for today, Nyan Cat
  Reply
#2
BO needs you.
  Reply
#3
(08-31-2011, 19:13)Lemon Wrote: BO needs you.

Why do we need him
[Image: MaEIQ.png]
  Reply
#4
NO BLOPS Angry
  Reply
#5
(08-31-2011, 19:14)Pozzuh Wrote:
(08-31-2011, 19:13)Lemon Wrote: BO needs you.

Why do we need him

You are not modding BO either.
BO needs him cuz he makes mods, tuts.
  Reply
#6
(08-31-2011, 19:18)Lemon Wrote:
(08-31-2011, 19:14)Pozzuh Wrote:
(08-31-2011, 19:13)Lemon Wrote: BO needs you.

Why do we need him

You are not modding BO either.
BO needs him cuz he makes mods, tuts.

But not for BO, I get bored of it after 5 minutes.
  Reply
#7
i agree with yamato. but liberatiion for mw2 doesnt work for me((
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
  Reply
#8
I can change explosive's radius by using the tutorial? Like AC130,javelin etc
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  GTA V fun things RaZ 4 4,196 05-06-2015, 18:55
Last Post: RaZ
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 3,869 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,282 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,300 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,301 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,364 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,065 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 3,013 06-05-2013, 11:24
Last Post: akillj
  Random anims master131 14 9,937 05-24-2013, 09:45
Last Post: [HARD] Tony.
  [Request] Random player model hillbilly 1 2,533 05-12-2013, 08:30
Last Post: archit

Forum Jump:


Users browsing this thread: 1 Guest(s)