Turrets -- v1.4 RELEASED [Both Directions!]

Mods, guides how to use and install mods go right in here.
Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 15:12

Turtle95 wrote:
Maurice wrote:
Turtle95 wrote:I'm not adding any more code to it, only putting it in my mod to better how it looks. That's all.
To "better how it looks"? Most of the code I uploaded is for finding a player, adjusting the aim and firing. Maybe you should learn some lua before you finish this.
Graphics, Maurice. I did. It's not firing though.
If the mod ends up anything like your current release, I'd rather not be credited.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 15:14

Maurice wrote: If the mod ends up anything like your current release, I'd rather not be credited.
It won't be. Just why isn't it firing? I implemented drawing it in game.lua. The shots.

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 15:16

C'mon man. It's like 2 draw calls and 2 object types you have to add. This ain't a rube goldberg machine.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 15:18

Maurice wrote:C'mon man. It's like 2 draw calls and 2 object types you have to add. This ain't a rube goldberg machine.
Neva mind. I wasn't far enough in its range.

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 15:24

Maurice wrote:C'mon man. It's like 2 draw calls and 2 object types you have to add. This ain't a rube goldberg machine.
lol :D

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 15:29

Maurice wrote:C'mon man. It's like 2 draw calls and 2 object types you have to add. This ain't a rube goldberg machine.
Interesting but offtopic fact - I did find your YouTube channel years ago via a stream of related videos about rube goldberg machines but promptly forgot about it.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 15:30

Just to be clear, Maurice, to make the left turrets shoot these, make the values negative on angle and distance?

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 15:35

what

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 15:36

Translation: Maurice help left facing turret plz?

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 15:37

Maurice wrote:what
If it wants to shoot Mario towards the left rather than the right is what I'm saying. Ex:

M T(Facing Left)

(Mario) (Turret)

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 12 Apr 2012, 16:03

I just saw the Turret Animation...
Image

Though I understand Maurice you hate it, you should think about how many people want it to be added. Otherwise (not trying to be a jerk) It would seem a little selfish on your part not to.

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:07

Mari0Lu1g1 wrote:I just saw the Turret Animation...
Though I understand Maurice you hate it, you should think about how many people want it to be added. Otherwise (not trying to be a jerk) It would seem a little selfish on your part not to.
Mari0Lu1g1 wrote:selfish
lol, you say selfish even maurice helped with a mod he didn't even like, and by the way, he is the owner of this whole thing, he can do whatever the fuck he wants :D

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 12 Apr 2012, 16:09

yeah but just because he can, doesn't mean he should.

also you seem to be a little bit of a suck up to Maurice :P

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:12

lol, im just trying not to lose his respect, because he banned me once because of a giant grammar nazi sign >< :D

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:13

and yeah thats kinda ironic because my grammar sux.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 16:13

Sucking up to someone won't make them respect you, it'll only make them pity you.

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:16

lol, im not sucking up, i quoted from maurice's post from somewhere where he said that he can do whatever he wants

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 12 Apr 2012, 16:19

you don't need his respect
I've been banned twice and no one treating me different;y for it and I don't think anyone cares either esp Maurice
besides Saso actually in charge of the forums.
am I the only one who feels Saso isn't given enough credit?

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 12 Apr 2012, 16:19

Just stating my opinion...

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:22

xXxrenhoekxXx wrote:you don't need his respect
I've been banned twice and no one treating me different;y for it and I don't think anyone cares either esp Maurice
besides Saso actually in charge of the forums.
am I the only one who feels Saso isn't given enough credit?
i dont need his respect BUT i dont want to be the guy, who annoys people etc.. and i dont want maurice to hate me, because i dont know when i need his help if i want to make a mod or something

and yeah, maurice is responsible for the most of the games, saso cant help too much because the games are mostly coded by maurice, so he can help the best.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 16:24

NEoNoxD wrote:
xXxrenhoekxXx wrote:you don't need his respect
I've been banned twice and no one treating me different;y for it and I don't think anyone cares either esp Maurice
besides Saso actually in charge of the forums.
am I the only one who feels Saso isn't given enough credit?
i dont need his respect BUT i dont want to be the guy, who annoys people etc.. and i dont want maurice to hate me, because i dont know when i need his help if i want to make a mod or something

and yeah, maurice is responsible for the most of the games, saso cant help too much because the games are mostly coded by maurice, so he can help the best.
Agreed.

anyway.. Just fixing a few things like killing turrets (AGAIN) and picking up turrets. They won't pick up unless portaled.. Still.

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:29

and, how will you implement damage? i mean, turrets shoot you, will you die immediately or lose health (then you have to make health)

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 12 Apr 2012, 16:30

NEoNoxD wrote:and, how will you implement damage? i mean, turrets shoot you, will you die immediately or lose health (then you have to make health)
hit counter

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:30

rokit boy wrote:
NEoNoxD wrote:and, how will you implement damage? i mean, turrets shoot you, will you die immediately or lose health (then you have to make health)
hit counter
oh, cool :D but it must be cleared after a few seconds so your health will "regenerate"

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 16:33

xXxrenhoekxXx wrote:you don't need his respect
I've been banned twice and no one treating me different;y for it and I don't think anyone cares either esp Maurice
besides Saso actually in charge of the forums.
am I the only one who feels Saso isn't given enough credit?
Translation: I want Sašo's respect.
NEoNoxD wrote:i dont need his respect BUT i dont want to be the guy, who annoys people etc.. and i dont want maurice to hate me, because i dont know when i need his help if i want to make a mod or something

and yeah, maurice is responsible for the most of the games, saso cant help too much because the games are mostly coded by maurice, so he can help the best.
Maurice doesn't really do hate, he just gets annoyed at people.

And who do you think is responsible for magicdns?

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 12 Apr 2012, 16:34

NEoNoxD wrote:
rokit boy wrote:
NEoNoxD wrote:and, how will you implement damage? i mean, turrets shoot you, will you die immediately or lose health (then you have to make health)
hit counter
oh, cool :D but it must be cleared after a few seconds so your health will "regenerate"
Well, I haven't gotten the collision done yet.

User avatar
NEoNoxD
Posts: 99
Joined: 07 Apr 2012, 23:37

Post » 12 Apr 2012, 16:36

Camewel wrote:
xXxrenhoekxXx wrote:you don't need his respect
I've been banned twice and no one treating me different;y for it and I don't think anyone cares either esp Maurice
besides Saso actually in charge of the forums.
am I the only one who feels Saso isn't given enough credit?
Translation: I want Sašo's respect.
NEoNoxD wrote:i dont need his respect BUT i dont want to be the guy, who annoys people etc.. and i dont want maurice to hate me, because i dont know when i need his help if i want to make a mod or something

and yeah, maurice is responsible for the most of the games, saso cant help too much because the games are mostly coded by maurice, so he can help the best.
Maurice doesn't really do hate, he just gets annoyed at people.

And who do you think is responsible for magicdns?
that is networking, which is currently not in the game yet.

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 12 Apr 2012, 16:50

Camewel wrote:Translation: I want Sašo's respect.
... I suck when getting a point accross don't I?

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 13 Apr 2012, 04:16

..Ok.

Anyone wanna help me do collision with the bullets?

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 13 Apr 2012, 04:34

How hard can it be
get the position of the bullet, check if > x & > y & < x+width & < y+height

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 13 Apr 2012, 04:35

Maurice wrote:How hard can it be
get the position of the bullet, check if > x & > y & < x+width & < y+width
To the code then!

EDIT:

Hold on.. turretshot.lua is where I wanna be for the bullet's X and Y. Why are you saying the comparisons weirdly?

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 13 Apr 2012, 20:42

Turtle95 wrote:
Maurice wrote:How hard can it be
get the position of the bullet, check if > x & > y & < x+width & < y+width
To the code then!

EDIT:

Hold on.. turretshot.lua is where I wanna be for the bullet's X and Y. Why are you saying the comparisons weirdly?
google boundingbox.lua

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 13 Apr 2012, 20:56

No rokit boy, you're wrong.
Google "aabb collisions"

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 13 Apr 2012, 21:00

Googled, got this:

Code: Select all

function CheckCollision(ax1,ay1,aw,ah, bx1,by1,bw,bh)

  local ax2,ay2,bx2,by2 = ax1 + aw, ay1 + ah, bx1 + bw, by1 + bh
  return ax1 < bx2 and ax2 > bx1 and ay1 < by2 and ay2 > by1
end
Tested, worked.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 13 Apr 2012, 21:46

rokit boy wrote:Googled, got this:

Code: Select all

function CheckCollision(ax1,ay1,aw,ah, bx1,by1,bw,bh)

  local ax2,ay2,bx2,by2 = ax1 + aw, ay1 + ah, bx1 + bw, by1 + bh
  return ax1 < bx2 and ax2 > bx1 and ay1 < by2 and ay2 > by1
end
Tested, worked.
Into turretshot.lua?

Locked