Ryan

Donator
  • Content count

    100
  • Joined

  • Last visited

Everything posted by Ryan

  1. Welcome :D
    1. siikdude
    2. Ryan

      Ryan

      Why do you say that?

    3. siikdude

      siikdude

      I heard that there is bots going around that buy things at certain price points,etc instant. I could be wrong though as i haven't researched further...Could very well be possible someone actually bought the knife at that price

    4. Show next comments  6 more
  2. Ah my bad I misunderstood. You can do something as simple as this: trap() { trigger = getEnt("trigger","targetname"); brush1 = getEnt("brush1","targetname"); brush2 = getEnt("brush2","targetname"); brush3 = getEnt("brush3","targetname"); trigger waittill("trigger"); trigger delete(); while(1) { brush1 rotateYaw(360,1); brush2 rotateYaw(360,1); brush3 rotateYaw(360,1); wait 1; } } So brush1, brush2, and brush3 would be the 3 brushes with the 3 different targetnames. Was this something you were looking for?
  3. You would make the brushes and then select all the brushes that you want to rotate and give them the same targetname/value.
  4. So I wasn't really sure if I should post this here since it isn't GSC coding but I'm hoping someone here can help me with this Java coding exercise for school. So here's the problem, I'm trying to make a Time Calculator where you ask the user for a certain time like 7 then ask if it's am or pm then ask them to enter an elapsed amount of time like 10 so the output will be 5:00am. I got everything to work but whenever the user enters a number like 18 as the elapsed amount instead of 10, I get 13:00 which is not what I want since it's supposed to be a 12 hour clock. So now I need to make it into a loop so I can enter any amount of elapsed time and get the correct answer and this is where I'm stuck. I don't really know where to begin with it. I'll paste my code that I have so far down below. Thanks. If you find my explanation confusing, I'll try to reword it the best I can. package chapter5ex11; import java.util.Scanner; public class Chapter5Ex11 { public static void main(String[] args) { //Variables int usernum, elapsed, hour,i=0; String AmPm; Scanner input = new Scanner(System.in); //Input System.out.format("%13s %1s"," ","Enter the starting hour: "); usernum = input.nextInt(); System.out.format("%13s %1s"," ","Enter am or pm: "); AmPm = input.next(); System.out.format("%13s %1s"," ","Enter the number of elapsed hours: "); elapsed = input.nextInt(); input.close(); //Output if(elapsed>=12-usernum) { if("am".equals(AmPm)) { AmPm="pm"; } else { AmPm="am"; } } if(usernum<=12) { hour=usernum+elapsed; if(hour>12) { i=hour-12; System.out.format("%13s %1s\n"," ","The time " + "is: "+i+":00"+AmPm); } else { System.out.format("%13s %1s\n"," ","The time " + "is: "+hour+":00"+AmPm); } } } }
  5. Thanks! Was a little bit confusing but I think I'll be able to figure it out, though I'll have to wait till monday at school before doing anything.
  6. You are right and I do know how to allow the user to end the program if it's on a loop, but what I need to do is make it so the user can enter higher amounts of numbers in the "Enter the number of elapsed hours" part of the code. So if I entered 7 as the starting hour, then PM, then for the elapsed hour I entered 18. The output would be wrong and would be 13:00 not 1:00 which Is what I want. The way I have my code setup is so that when the starting hour and elapsed hour are entered they are added together then 12 is subtracted to get the answer. But I need to make a loop so if it were above 24 as the sum of the starting hour and elapsed time it would subtract 24 instead. But I can't figure out what my parameters would be in the while loop.
  7. Mine :D
  8. I'm addicted to CS:GO now :dave:

    1. Show previous comments  3 more
    2. jwofles

      jwofles

      "So you can hate on it all you want it's not goin anywhere"

      so kinda like you?

    3. Darmuh
    4. Ryan

      Ryan

      Damn shit got real so fast

    5. Show next comments  6 more
  9. I got a new computer, some steam cards, and some cologne/deodorant :) Pictures came out kinda big.
  10. for (int i=inputnum; i<=inputnum1; i++) { for (divide=2; divide<i; divide++) { num = i%divide; if (num==0) { break; } } if(i==divide) { System.out.format("%13s %1s\n"," ",""+i); } }
  11. Works, thanks man :wub:
  12. Would it be something like this? effect = spawnFx(level.burn, 0.05, (12224, 1232, -376)); Because I got a script runtime error saying type float is not a vector.
  13. Thanks ;) but I'm confused about this line: effect = spawnFX( level.fxname, position.origin ); I'm unclear on the position.origin part of it.
  14. Didn't work, still can't figure it out :unsure:
  15. I got it to work but now I want the effect to stop after a certain time but can't figure out how to do that.
  16. If you know how and/or have the time could you possibly make a tutorial on how to have effects as traps. Such as when the activator activates a certain trap, fire comes up from the ground and kills the jumpers instantly. I have an idea just not a 100 percent sure and could use some explanation on it. If you could, I'd greatly appreciate it :wub: Having fire coming out of something like this is what I'm wanting to do: http://gyazo.com/6e2ce718273a139169271230fe9147c0
  17. Seems a little dark in some areas and I wasn't a fan of how the activator triggers was just fire on the ground. Also, the trap with the tiny squares was very difficult in my opinion, maybe make them a little bigger. Just a couple of things I thought of.
  18. http://gyazo.com/d34c9bb118129f3c5178c7aff82d676a My comp at the moment, getting a much better one for christmas.
  19. Try to understand? Stand you I
  20. I'd stick with the HDD unless you can spend the extra money to get both. Samsung's 840 EVO 120GB SSD is about $85.
  21. Hello RAID, so I'm here to ask some help on this script. The way I have it set up is that when it's activated it will go through and pick one of the choices randomly and it works fine but what I need help with is that I want to get the brush rotations to be constant and not stop. I tried adding while(1) in different places but that didn't work out. I'm still pretty new to scripting so I'm not sure if I'm just missing something or I didn't set it up the right way for what I want it to do, anyways, any help would be appreciated! Thanks ;) Here's the script: trap9() { brush1 = getEnt("trap9","targetname"); brush2 = getEnt("trap9.1","targetname"); brush3 = getEnt("trap9.2","targetname"); trigger = getEnt("trap9_trig","targetname"); trigger waittill("trigger"); x = randomInt(3); if (x == 1) { brush1 rotateRoll(360,2); brush2 rotateRoll(360,2); brush3 rotateRoll(360,2); brush2 notsolid(); brush3 notsolid(); } if (x == 2) { brush1 rotateRoll(360,2); brush2 rotateRoll(360,2); brush3 rotateRoll(360,2); brush1 notsolid(); brush3 notsolid(); } if (x == 3) { brush1 rotateRoll(360,2); brush2 rotateRoll(360,2); brush3 rotateRoll(360,2); brush1 notsolid(); brush2 notsolid(); } trigger delete(); }
  22. Thanks for the help Bear, but unfortunately it didn't work. The brushes wouldn't rotate at all or become not solid. Edit: I'm stupid, I forgot to rethread the trap :facepalm: Works, thanks alot :)
  23. Yes I did, but I actually tried it like that but when the trap was activated it would freeze the game for a bit and if I remember correctly it still didn't work.