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

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

#2
BO needs you.

#3
(08-31-2011, 19:13)Lemon Wrote: BO needs you.

Why do we need him
[Image: MaEIQ.png]

#4
NO BLOPS Angry

#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.

#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.

#7
i agree with yamato. but liberatiion for mw2 doesnt work for me((
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]

#8
I can change explosive's radius by using the tutorial? Like AC130,javelin etc



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 6,198 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 6,649 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 6,374 09-12-2013, 17:32
Last Post: Yamato
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,859 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 6,134 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 4,599 06-05-2013, 11:24
Last Post: akillj
  Random anims master131 14 14,499 05-24-2013, 09:45
Last Post: [HARD] Tony.
  [Request] Random player model hillbilly 1 3,889 05-12-2013, 08:30
Last Post: archit
  [Release] Random Functions 1.1 Yamato 22 18,475 04-20-2013, 10:13
Last Post: Dominator56
  Random interesting facts AZUMIKKEL 40 23,475 11-13-2012, 16:47
Last Post: JariZ

Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.