![]() |
|
[Tutorial] Random things - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Tutorial] Random things (/Thread-Tutorial-Random-things.html) |
Random things - Yamato - 08-31-2011 Hello, ![]() A random tutorial with a few random things This is a better way of making a radiusdamage, , is far completerCode: 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,
RE: Random things - Lemon - 08-31-2011 BO needs you. RE: Random things - Pozzuh - 08-31-2011 (08-31-2011, 19:13)Lemon Wrote: BO needs you. Why do we need him RE: Random things - Yamato - 08-31-2011 NO BLOPS
RE: Random things - Lemon - 08-31-2011 (08-31-2011, 19:14)Pozzuh Wrote:(08-31-2011, 19:13)Lemon Wrote: BO needs you. You are not modding BO either. BO needs him cuz he makes mods, tuts. RE: Random things - Yamato - 08-31-2011 (08-31-2011, 19:18)Lemon Wrote:(08-31-2011, 19:14)Pozzuh Wrote:(08-31-2011, 19:13)Lemon Wrote: BO needs you. But not for BO, I get bored of it after 5 minutes. RE: Random things - Arteq - 08-31-2011 i agree with yamato. but liberatiion for mw2 doesnt work for me(( RE: Random things - Metro-Police#45 - 09-10-2011 I can change explosive's radius by using the tutorial? Like AC130,javelin etc |