Hello There, Guest!   Inicia Sesion Login Registrate Register La Hora Current time: 6-3-26, 10:56 PM
Login
Username/Email:
Password:
Lost Password?
 
Lenny Face Gaming Forums
  • [ ] Portal
  • [ ] Forum
  • [ ] Members
  • [ ] Calendar
  • [ ] Help
  • Steam Group
  • GameTracker
  • Youtube
Donations | Server List | Admin List | Bans | Praise The Overlord!
Home Lenny Face Gaming Forums › Lenny Face Gaming › General Chat v
« Previous 1 … 5 6 7 8 9 … 19 Next »

E2 Thread (Help, Suggestions, Sharing)
Pages (2): 1 2 Next »
Threaded Mode
E2 Thread (Help, Suggestions, Sharing)
« Next Oldest | Next Newest »
Views 24074
Replies 15
Thread Closed 
Users browsing this thread: 2 Guest(s)
DarudeDankstorm Offline
Ex. TTT Admin
***
Beginner (12)
Posts: 149
Threads: 22
Thanks: 10 in 10 posts
Thanks Given: 8
Joined: Aug 2017
Warning Level: 0%
gmod_donator_premium
Member
#1
10-17-17, 03:20 PM
After having some issues on my own with E2, figured it was probably worth it to make a thread for that sort of stuff open to everybody, incase they need help (thanks to @ajphandalf for the suggestion). In this thread, drop any questions or pre-existing E2s you have. If you see somebody with a problem, try and help out. I'll start out by helping with super basic effect stuff I guess.

Effects:
For very basic effect spawns, use these lines: 
@persist Variable:effect
runOnTick(1)
if(first()|dupeFinished()) {
Variable = effect()
Variable:play("EffectName")
}

In order to make it your own, you can add whatever effect you can, as long as it's available in GMod. The complete list is here. 

To customize your effect a little bit, try adding these 3 lines (warning: there is a space after the : in each of these to avoid emotes. Remove it in your E2):

  • effect: setScale(number)
  • effect: setMagnitude(number)
  • effect: setOrigin(vector)

effect: setScale determines the SPEED of the effect, not the size. If you want the effect to go super fast, use something like 500. If not, keep it lower.

effect: setMagnitude changes the size, or scale, of the effect. Don't ask me why this one isn't setScale.

effect: setOrigin is the position in which the effect spawns. Without this, it spawns where you shoot the E2.
Please be SPECIFIC with your issues. Nobody can help you if you're super vague about everything. Also, this isn't a request thread, so please don't ask if any of us can make you an E2.
Praise the Overlord!
[+] The following 1 user says Thank You to DarudeDankstorm for this post:1 user says Thank You to DarudeDankstorm for this post
  • ajphandalf
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#2
10-18-17, 10:18 AM
Can you make a FizzBuzz using E2?
[+]
  •
Find
DarudeDankstorm Offline
Ex. TTT Admin
***
Beginner (12)
Posts: 149
Threads: 22
Thanks: 10 in 10 posts
Thanks Given: 8
Joined: Aug 2017
Warning Level: 0%
gmod_donator_premium
Member
#3
10-18-17, 10:41 AM
(10-18-17, 10:18 AM)Zellogi Wrote: Can you make a FizzBuzz using E2?

Is that a serious question? I'm pretty sure anybody with a few brain cells can figure out how to write one.
Praise the Overlord!
[+]
  •
Find
UHC Offline
Consultant
*****
Fantastic (154)
Posts: 1,377
Threads: 133
Thanks: 127 in 104 posts
Thanks Given: 73
Joined: Mar 2017
Warning Level: 0%
Consultant
#4
10-18-17, 05:44 PM
(10-18-17, 10:41 AM)DarudeDankstorm Wrote: Is that a serious question? I'm pretty sure anybody with a few brain cells can figure out how to write one.
apparently you need to be an expert at e2 before you ask any questions here
[Image: esANH.jpg]
[+]
  •
Find
DarudeDankstorm Offline
Ex. TTT Admin
***
Beginner (12)
Posts: 149
Threads: 22
Thanks: 10 in 10 posts
Thanks Given: 8
Joined: Aug 2017
Warning Level: 0%
gmod_donator_premium
Member
#5
10-18-17, 09:10 PM
(10-18-17, 05:44 PM)Honorable_ZR Wrote: apparently you need to be an expert at e2 before you ask any questions here

A FizzBuzz is a super basic code used by like school teachers. It counts to 100 and replaces multiples of 3 with the word Fizz, multiples of 5 with Buzz, and multiples of both with FizzBuzz. Plus I'm pretty sure Saint asked some dude who claimed to be a programming god in chatbox. Point is it's easy.
Praise the Overlord!
[+]
  •
Find
SaintLuther Offline
Administrator
*******
Legendary (1147)
Posts: 9,413
Threads: 91
Thanks: 1,063 in 805 posts
Thanks Given: 75
Joined: Dec 2014
Warning Level: 0%
Administrators
#6
10-18-17, 09:52 PM
(10-18-17, 09:10 PM)DarudeDankstorm Wrote: Plus I'm pretty sure Saint asked some dude who claimed to be a programming god in chatbox. Point is it's easy.

Except for the part where the "programming god" (aka @Dark Swordsman) can't figure it out for the life of him because he's probably never programmed before.
[+]
  •
Website Find
Dark Swordsman Offline
Forum User
Beginner (7)
Posts: 738
Threads: 80
Thanks: 34 in 31 posts
Thanks Given: 24
Joined: Aug 2016
Warning Level: 0%
#7
10-18-17, 10:41 PM
(10-18-17, 09:52 PM)SaintLuther Wrote: Except for the part where the "programming god" (aka @Dark Swordsman) can't figure it out for the life of him because he's probably never programmed before.

I've written a fizzbuzz but not with E2... I don't even use E2 because I just don't like to.
[+]
  •
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#8
10-18-17, 10:44 PM
(10-18-17, 10:41 PM)Dark Swordsman Wrote: I've written a fizzbuzz 

Proof or it didn't happen.
[+]
  •
Find
Dark Swordsman Offline
Forum User
Beginner (7)
Posts: 738
Threads: 80
Thanks: 34 in 31 posts
Thanks Given: 24
Joined: Aug 2016
Warning Level: 0%
#9
10-18-17, 10:46 PM
Heres one that I solved beforeSadAlso answer to the ? I wrote)



Code:
//initialise variables

var i;
var myNumber;

Code:
//Ask the user for a number

myNumber = prompt("Give me your number");
Code:
// for the numbers 1 through to the number given,

for (i=1; i<=myNumber; i++) {
Code:
//test the number for being divisable by BOTH 3 & 5

if (i % 3===0 && i % 5 ===0) {
console.log("FizzBuzz");
}
//if the number is divisible by 3, write "Fizz"

else if (i % 3 === 0) { 
console.log("Fizz");
}
//if the number is divisible by 5, write "Buzz"
else if (i % 5 === 0){
console.log ("Buzz");
}
//Otherwise, just write the number
else {
console.log(i);
}
}


(And before you accuse its a copy paste, No, its not on a webpage or forum and no my search history doesnt even have "Fizzbuzz copy paste" in it. I genuinely wrote and spent time on that to answer something as a challenge)
[+]
  •
Find
Dogesky Offline
Forum User
Fantastic (123)
Posts: 726
Threads: 27
Thanks: 94 in 84 posts
Thanks Given: 94
Joined: Apr 2016
Warning Level: 0%
#10
10-18-17, 11:01 PM
(10-18-17, 10:46 PM)Dark Swordsman Wrote: (And before you accuse its a copy paste, No, its not on a webpage or forum and no my search history doesnt even have "Fizzbuzz copy paste" in it. I genuinely wrote and spent time on that to answer something as a challenge)


Thats a copypaste and you didn't even bother trying to cover it up.

https://www.codecademy.com/en/forum_ques...0003001c3a

Notice anything similar other than its an exact carbon copy?

EDIT: The least, and I mean the absolute least you could've done would be to delete the //'s, as they're not even part of the actual code, and no one "challenging" themselves would've seen the need to add them.

Good luck getting valedictorian at how much you're plagiarizing.

[Image: 8f646e1b3512e2a62a85d15e4d2db892.png]
[Image: 07ad00c8636a3f2cd23b2470b175f393.png]
[+] The following 2 users say Thank You to Dogesky for this post:2 users say Thank You to Dogesky for this post
  • Zellogi, Deucedemon
Find
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Thread Closed 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

  • Contact Us
  • Lenny Face Gaming Forums
  • Return to Top
  • Lite (Archive) Mode
  • Mark all forums read
  • RSS Syndication