Author Topic: Learning Simple E2 with Kräsher!  (Read 3486 times)

0 Members and 1 Guest are viewing this topic.

Offline Frank

  • No.
  • WaffleBBQrz
  • ******
  • Posts: 4058
  • Karma: +94/-45
  • Gender: Male
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #15 on: April 11, 2010, 04:19:52 PM »
I will go over commands later Frank...

Foo.

Offline Peetah

  • Unnecessary encouragement guy.
  • Übermensch
  • *****
  • Posts: 877
  • Karma: +16/-4
  • Gender: Male
  • And God saw that it was Good.
    • View Profile
    • Youtube Account
Re: Learning Simple E2 with Kräsher!
« Reply #16 on: April 12, 2010, 05:51:26 PM »
One thing to note. Always try to make your code as clean as possible. Like followingthe basic code structure that applies to all forms of coding. Anyways, my english has really improved :).
Also, Try to make your code as efficiant as possible. this can be measures when you look at the e2 itself and check the ops. (operations per second). this makes the server less laggy and not do as much work. I would have to point somthing out. How come you used interval of 0.5? like interval(20) is more then enough.





Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Learning Simple E2 with Kräsher!
« Reply #17 on: April 12, 2010, 07:04:01 PM »
Always try to make your code as clean as possible
Example:
Code: [Select]
@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()

if(owner()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+vec(0,0,150) - Prop:pos()}

if(owner():keyAttack1()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+(owner():eye()*-100000) - Prop:pos()}
To:
Code: [Select]
@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()

if(owner()) {
    Prop:applyForce(($V*10+V)*Prop:mass())
    V=Me:pos()+vec(0,0,150) - Prop:pos()
}

if(owner():keyAttack1()) {
    Prop:applyForce(($V*10+V)*Prop:mass())
    V=Me:pos()+(owner():eye()*-100000) - Prop:pos()
}
-Admin Application-

Follow the rules or I will you.

Offline Frank

  • No.
  • WaffleBBQrz
  • ******
  • Posts: 4058
  • Karma: +94/-45
  • Gender: Male
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #18 on: April 13, 2010, 10:44:34 AM »
Cool E2, bro.

Offline Peetah

  • Unnecessary encouragement guy.
  • Übermensch
  • *****
  • Posts: 877
  • Karma: +16/-4
  • Gender: Male
  • And God saw that it was Good.
    • View Profile
    • Youtube Account
Re: Learning Simple E2 with Kräsher!
« Reply #19 on: April 15, 2010, 06:10:10 PM »
Example:
Code: [Select]
@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()

if(owner()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+vec(0,0,150) - Prop:pos()}

if(owner():keyAttack1()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+(owner():eye()*-100000) - Prop:pos()}
To:
Code: [Select]
@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()

if(owner()) {
    Prop:applyForce(($V*10+V)*Prop:mass())
    V=Me:pos()+vec(0,0,150) - Prop:pos()
}

if(owner():keyAttack1()) {
    Prop:applyForce(($V*10+V)*Prop:mass())
    V=Me:pos()+(owner():eye()*-100000) - Prop:pos()
}

Very good Krasher. Just like how a real profetional coder would do it. I do respect you Krasher. Very wise for your age. Just dont get carried away with this power.





Offline DoeniDon

  • Now with an even gayer name.
  • Übermensch
  • *****
  • Posts: 1092
  • Karma: +40/-21
  • Gender: Male
  • One of RNDs two swiss dudes.
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #20 on: May 14, 2010, 07:01:49 AM »
Bawmp
Will you ever continue this Krasher?

dmalcolm33:  i hate win fags put dick in there butts
.:RND`=-[JP]Yomogimochi: Don hgas  killing me
.:RND`=-[JP]Yomogimochi: need cut he's penis

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Learning Simple E2 with Kräsher!
« Reply #21 on: May 14, 2010, 12:56:26 PM »
Bawmp
Will you ever continue this Krasher?
I lost all my E2 when I got that virus. I will continue when I move on toooo... What do you want to learn?
-Admin Application-

Follow the rules or I will you.

Offline DoeniDon

  • Now with an even gayer name.
  • Übermensch
  • *****
  • Posts: 1092
  • Karma: +40/-21
  • Gender: Male
  • One of RNDs two swiss dudes.
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #22 on: May 14, 2010, 01:04:51 PM »
I lost all my E2 when I got that virus. I will continue when I move on toooo... What do you want to learn?
That one Lua Virus there or a different one?
And I dunno, knowing how to make these walking Ragdolls OR how to make these floating balls following your command (bad description, inorite) would be awesome.

dmalcolm33:  i hate win fags put dick in there butts
.:RND`=-[JP]Yomogimochi: Don hgas  killing me
.:RND`=-[JP]Yomogimochi: need cut he's penis

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Learning Simple E2 with Kräsher!
« Reply #23 on: May 14, 2010, 01:08:07 PM »
That one Lua Virus there or a different one?
And I dunno, knowing how to make these walking Ragdolls OR how to make these floating balls following your command (bad description, inorite) would be awesome.
Floating balls?
-Admin Application-

Follow the rules or I will you.

Offline DoeniDon

  • Now with an even gayer name.
  • Übermensch
  • *****
  • Posts: 1092
  • Karma: +40/-21
  • Gender: Male
  • One of RNDs two swiss dudes.
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #24 on: May 14, 2010, 01:10:02 PM »
Floating balls?
Yes. They make Zombie Sounds, and when you for example type !attack, they attack a close player. Really don't know how to describe it lol.
But the walking Ragdoll would be far more interesting. I would love you forever if you would do that one <3

dmalcolm33:  i hate win fags put dick in there butts
.:RND`=-[JP]Yomogimochi: Don hgas  killing me
.:RND`=-[JP]Yomogimochi: need cut he's penis

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Learning Simple E2 with Kräsher!
« Reply #25 on: May 14, 2010, 01:11:44 PM »
Yes. They make Zombie Sounds, and when you for example type !attack, they attack a close player. Really don't know how to describe it lol.
But the walking Ragdoll would be far more interesting. I would love you forever if you would do that one <3
k, loading gmod to show everyone Bone Entities on ragdolls.
-Admin Application-

Follow the rules or I will you.

Offline Peetah

  • Unnecessary encouragement guy.
  • Übermensch
  • *****
  • Posts: 877
  • Karma: +16/-4
  • Gender: Male
  • And God saw that it was Good.
    • View Profile
    • Youtube Account
Re: Learning Simple E2 with Kräsher!
« Reply #26 on: May 14, 2010, 02:32:29 PM »
What your talking about is BALLS OF STEEL. I hate that dam e2. Its a good e2, but abused so much its not even funny.





Offline » Magic «

  • Who dares wins
  • WaffleBBQrz
  • ******
  • Posts: 4020
  • Karma: +101/-34
  • Gender: Male
  • Prepare for the worst :D
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #27 on: May 14, 2010, 04:09:48 PM »
I ban people for using that e2
Copyright© .:~`=-rANdOm-=`~:. GameServer's Administration Team 2008/2009/2010


bubbly bubbly so darn bubbly

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Learning Simple E2 with Kräsher!
« Reply #28 on: May 14, 2010, 04:42:24 PM »
What your talking about is BALLS OF STEEL. I hate that dam e2. Its a good e2, but abused so much its not even funny.
Bone entites are not BoS.
-Admin Application-

Follow the rules or I will you.

Offline Sanders

  • THIS IS MY FINAL FORM
  • Übermensch
  • *****
  • Posts: 794
  • Karma: +37/-21
  • Gender: Male
  • BAHAHAHAHAHAHAH!
    • View Profile
Re: Learning Simple E2 with Kräsher!
« Reply #29 on: May 14, 2010, 05:54:59 PM »
Bone entites are not BoS.

He is refering to the floating balls bein Balls of Steel

For reference to everyone, bone is what it sounds like, the specific parts of a ragdoll.