Basic turret

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Basic turret

by jordan4ibanez » Fri Nov 23, 2012 05:40

Here is a basic turret i created for mauvebic , it auto-detects players (including the owner) and automatically shoots at them.

Download

Video: http://youtu.be/nHWsxzrJwCs
Last edited by jordan4ibanez on Fri Nov 23, 2012 05:47, edited 1 time in total.
If you can think it, you can make it.
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Fri Nov 23, 2012 05:45

Nice! Can it see and shoot through blocks?
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Fri Nov 23, 2012 05:45

InfinityProject wrote:Nice! Can it see and shoot through blocks?

Noper! But that is a feature
So you can hide behind blocks and stuff and be tactical!
Last edited by jordan4ibanez on Fri Nov 23, 2012 05:48, edited 1 time in total.
If you can think it, you can make it.
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Fri Nov 23, 2012 05:48

Ok good. It'd kind of be cheap to have random things shoot at you while your inside a house.
 

User avatar
Aqua
Member
 
Posts: 641
Joined: Wed Aug 22, 2012 09:11

by Aqua » Fri Nov 23, 2012 06:06

This is cool=D maybe make it so you have to put the bullets in for it to fire?
Hi there ^.~
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Nov 23, 2012 18:46

Good. Do you plan to extend this one?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Fri Nov 23, 2012 18:52

Friggin sweet :-) seems we also found the same laser sound lol freesound.org?
"Fuck the hat." - Paulie Gualtieri
 

User avatar
pandaro
Member
 
Posts: 266
Joined: Sun Jan 08, 2012 21:34
GitHub: pandaro

by pandaro » Sat Nov 24, 2012 11:39

Very nice!
sorry for bad english
Linux debian 7 wheezy 64
kde
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sat Nov 24, 2012 12:29

Minetest crashes when I try to start the game with your mod:

13:27:58: ERROR[main]: ========== ERROR FROM LUA ===========
13:27:58: ERROR[main]: Failed to load and run script from
13:27:58: ERROR[main]: C:\Program Files (x86)\Minetest-c55 Win32\minetest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:
13:27:58: ERROR[main]: ...etest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:9: attempt to index global 'default' (a nil value)
13:27:58: ERROR[main]: stack traceback:
13:27:58: ERROR[main]: ...etest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:9: in main chunk
13:27:58: ERROR[main]: =======END OF ERROR FROM LUA ========
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Nov 24, 2012 13:03

webdesigner97 wrote:Minetest crashes when I try to start the game with your mod:

13:27:58: ERROR[main]: ========== ERROR FROM LUA ===========
13:27:58: ERROR[main]: Failed to load and run script from
13:27:58: ERROR[main]: C:\Program Files (x86)\Minetest-c55 Win32\minetest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:
13:27:58: ERROR[main]: ...etest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:9: attempt to index global 'default' (a nil value)
13:27:58: ERROR[main]: stack traceback:
13:27:58: ERROR[main]: ...etest-0.4.3-win32\bin\..\mods\minetest\gunz\init.lua:9: in main chunk
13:27:58: ERROR[main]: =======END OF ERROR FROM LUA ========

Add default to depends.txt
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Sat Nov 24, 2012 15:43

its weird how in linux you dont have to declare default as a dependency to use 'default.node_sound_stone_defaults()' but in win32 builds you do.

edit: anyone else notice errant bullets going one way then flying back ( 180 degrees) - the turrets and my guns both do that :-/
Last edited by mauvebic on Sat Nov 24, 2012 16:39, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sat Nov 24, 2012 18:24

Thx, now it works! Cool mod!
 

Gorilla
Member
 
Posts: 10
Joined: Wed Oct 16, 2013 01:39

by Gorilla » Thu Oct 31, 2013 02:46

I just tried this in singleplayer under Windows with Minetest 0.4.7 (not dev) and it works quite well. I did increase the range that it starts firing from 17 to 24... Look for the line:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local objects = minetest.env:get_objects_inside_radius(pos, 7)


I took at guess and made it 17 rather than 7.

Yes, I also needed to add default to depends.txt (you will need to create it) as mentioned by PilzAdam.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Oct 31, 2013 04:04

This is quite an old topic, plus the developer is no longer around. If you would like to keep updating this mod, it would be highly appreciated :) (create a new topic though).
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 


Return to Old Mods

Who is online

Users browsing this forum: No registered users and 23 guests

cron