Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Krasher

Pages: 1 ... 71 [72] 73 ... 186
1066
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 10:52:09 PM »

1067
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 10:20:13 PM »
I will go over commands later Frank...

1068
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 09:22:08 PM »
Simple Hologram
This is a LITTLE bit more advanced, :P.

Full Code:
Code: [Select]
@name Tutorial E2 5
@persist Timer
# This E2 makes a cube holo that spins :D #
interval(0.5)
Me = owner()
Chip = entity()
T = Timer
Timer = Timer+1*1
if(first()) {holoCreate(1)}

holoModel(1,"cube")
holoAng(1,ang(T,T,T))
holoPos(1,Chip:pos()+vec(0,0,45))
holoColor(1,vec(255,200,0))
holoScale(1,vec(1,1,1))
Variation of Color:
Change:
Code: [Select]
holoColor(1,vec(255,200,0))To:
Code: [Select]
holoColor(1,vec(random(255),random(255),random(255)))This sets the holo to rave light.

Explanation:
Timer is a variable, that means it is a number that can mean anything depending on the string it is set in.
Timer = Timer+1*1 adds 1 to the variable every interval.
holoCreate states that we are creating a hologram.
holoModel(1,"cube") states that this hologram will be in the shape of a cube :D.
holoAng(1,ang(T,T,T)) sets the angle of the hologram (You can put any numbers in place of T,T,T.)
holoPos(1,Chip:pos()+vec(0,0,45)) states the position of the holo. (in X,Y,Z, format.)
holoColor(1,vec(255,200,0)) states the color of our holo. (in RGB format.)
holoScale(1,vec(1,1,1)) states the scale of the holo. (in length, width, depth, format.)


1069
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 08:17:07 PM »
Player Trails
Now lets do player trails! This will put a trail on you! Just like a prop trail! :D

Full Code:
Code: [Select]
@name Tutorial E2 3
# This E2 puts a trail on your player. #
 owner():setTrails(3,50,5,"trails/smoke",vec(255,0,0),200)
Explanation:
owner is the player who spawned the E2, in other words. It's you.
setTrails is the function that states that you are setting the entity's (owner) trail.
"trails/smoke" is the part that goes after setTrails. This is the part where you can type in any trail you want!
vec(255,0,0) is the vector color.  the 3 numbers after vec are the color in R, G, and B.
setTrails(3,50,5) the 3 numbers after setTrails are Start Size, End Size, and Length, in that order.

1070
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 07:56:41 PM »
User Materials
Lets follow up with an E2 that can change your material!

Full Code:
Code: [Select]
@name Tutorial E2 2
# This E2 changes your material #
owner():setMaterial("phoenix_storms/chrome")

Explanation:
Code: [Select]
owner():setMaterial("phoenix_storms/chrome")
owner is the player who spawned the E2, in other words. It's you.
setMaterial is the function that you know, states that you are setting the entity's (owner) material.
("phoenix_storms/chrome") is the part that goes after setMaterial. This is the part where you can type in any material you want!

1071
Programming / Learning Simple E2 with Kräsher!
« on: April 10, 2010, 07:29:04 PM »



Prop/Player Raver

Lets begin by learning a SIMPLE color changing E2 that makes you change colors!

Open a NEW E2 and type this on the first line.
Code: [Select]
interval(10)This makes the E2 repeat itself every 10 milliseconds or so. (I am not sure what time increment it is.)

On line 2, type this out.
Code: [Select]
owner():setColor(random(255),random(255),random(255))The function 'owner' means that whatever the code after it says, it happens to the player who spawned it. The random(255) means it is randomlly picking a color from the RGB scale for each R, G, and B. RGB = Red, Green, Blue.

Simple Varition
If you want the PROP this is attached to to rave light up. Use this code..
Code: [Select]
@name Prop raver
Prop=entity():isWeldedTo()

interval(10)
 Prop:setColor(random(255),random(255),random(255))
Prop=entity():isWeldedTo() is a function that states that the prop that the E2 is attached to should have the code run on it, When the string 'Prop' is stated, followed by a code.


1072
Information and Forum Info / Re: Hi-sec member list :P
« on: April 10, 2010, 08:57:34 AM »
i am going to wafflez bitchass
I am commin with

1073
Boneyard / Re: garrysmod.org
« on: April 10, 2010, 08:39:11 AM »
GUYS GO http://forum.randomgs.co.cc/index.php/topic,2857.0.html
IT SHOWS YOU HOW TO DOWNLOAD THINGS FROM garrysmod.org WITHOUT AN ACCOUNT !

The only reason I didn't make that thread is because it is somewhat... 'illegal'.

1074
Server Requests/Suggestions / Re: Upgrade weapons in ZS
« on: April 10, 2010, 08:37:32 AM »
Guys, I am going to code (Yes, for real xD.) a rock as a weapon, a street cone, a sign, and a Gnome. :D

1075
Community Admin Apps / Re: Admin APP
« on: April 10, 2010, 08:34:01 AM »
don't spam
You and Frank aren't doing a very good job of that either.

1076
Community Admin Apps / Re: jim-onions admin application
« on: April 10, 2010, 08:07:02 AM »
>.>

we posted at the exact same time xD.

1077
General / Re: PPEP SVN Thread
« on: April 10, 2010, 08:04:29 AM »
Oh mah gawd!
We are going to have a Steam ID lock on it xD.

We could even open a freaking "Space Laser - Application" Thread lmfao.

1078
Server Requests/Suggestions / Re: Upgrade weapons in ZS
« on: April 10, 2010, 08:01:29 AM »
:question:
You posted four (4) times in a row.

1079
General Chat / Re: 1 year in RND
« on: April 10, 2010, 08:00:31 AM »

1080
General / Re: PPEP SVN Thread
« on: April 10, 2010, 07:56:19 AM »
U R CRAZY !
Yep, I was too tired last night to code an effect xD. But today I will mess around and make like 1123912 :D



I win

Pages: 1 ... 71 [72] 73 ... 186