Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hellraz0r

Pages: [1]
1
Oh, woops. Forgot the locate(). Sorry.
Code: [Select]
if(src.z == 1)
start_location = locate(/area/shuttle/myshuttle/first)
end_location = locate(/area/shuttle/myshuttle/second)
else
start_location = locate(/area/shuttle/myshuttle/second)
end_location = locate(/area/shuttle/myshuttle/first)

2
Assuming you have two docks for one shuttle, you can easily make a computer which will teleport the shuttle from one dock to another:

Code: (/code/game/machinery/computer/myshuttle.dm) [Select]
/obj/machinery/computer/my_shuttle
name = "shuttle computer"
icon_state = "shuttle"

// Right-click the shuttle computer and select take off
/obj/machinery/computer/my_shuttle/verb/take_off()
var/area/start_location
var/area/end_location
// Restrained people can't use computers
if (usr.stat || usr.restrained())
return
// All tests passed? Check the current location
// Note: the computer must be placed on the shuttle
if(src.z == 1)
start_location = /area/shuttle/myshuttle/first
end_location = /area/shuttle/myshuttle/second
else
start_location = /area/shuttle/myshuttle/second
end_location = /area/shuttle/myshuttle/first
// And teleport!
start_location.move_contents_to(end_location)

Don't forget to define the areas:
Code: (/code/defines/area/Space Station 13 areas.dm) [Select]
/area/shuttle/myshuttle
name = "My Shuttle"

/area/shuttle/myshuttle/first
icon_state = "shuttle2"

/area/shuttle/myshuttle/second
icon_state = "shuttle"

Code is untested but it should work.

3
If it helps, here's a rough outline of how power works in SS13: click
Also, please host.

4
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 24, 2011, 11:22:08 AM »
Couldn't you guys just simply make a new turf, and put it everywhere you don't want space, but where you want mars.

Yes, they could. But as soon as these mars turfs get destroyed / removed (i.e. due to an explosion or a shuttle takeoff), they are automatically replaced by the default world turf, in this case space. There are two solutions to this: Either change /world/turf to your custom mars turf, or if you want to be able to have mars and space Z-levels, make space tiles automatically check their Z-position upon initialization:

Code: ( /code/defines/turf.dm ) [Select]
/turf/space/New()
icon = 'space.dmi'
icon_state = "[pick(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)]"
if(src.z != 2) // Enter your mars Z-level here
src.ReplaceWithMars()

Code: ( /code/game/turf.dm ) [Select]
/turf/proc/ReplaceWithMars()
if(!icon_old) icon_old = icon_state
var/old_icon = icon_old
var/old_dir = dir
var/turf/mars/S = new /turf/mars( locate(src.x, src.y, src.z) )
S.dir = old_dir
S.icon_old = old_icon
return S

5
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 21, 2011, 11:32:07 AM »
Also, how exactly do you put it on the main list? there's no documentation about it.

If you want to make your game visible on the hub, open up Dream Daemon and set the visibility to public.

6
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 14, 2011, 01:46:26 PM »
Hellrazor, just to ask, how come this is your first post and you suddenly appeared and posted that right after people were getting excited for my marstation?
You've obviously trying to cash in on the popularity by releasing something quickly.

Our project is dead, there is no point in attracting popularity to it. We released it to allow people like you to make use of our work, I posted it here because I see a future in your project.

7
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 14, 2011, 09:25:02 AM »
For the moment, i'm going solo, but i'd like to know how you got vehicles working.
Since i really need to finish off a mars rover i've been coding, but i'm not going anywhere with it.

The hoverjeeps are basically escape pods with modified controls, see /code/unused/vehicle.dm.  And once again, do copy our code and icons, it is okay, as long as you provide attribution.

8
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 14, 2011, 04:22:07 AM »
Well, forget this, looks like everyone will say "OMG HIS IS BETTER LOL APH U COPYING" now.

I don't hope so. Our project is unlikely to get anywhere (development is on halt, no-one is willing or able to host a server), feel free to use our sourcecode.

9
Games / Re: Space Station 13, Now with more GAY BLACK ASS.
« on: January 14, 2011, 03:12:31 AM »
Jake Y. Tweet, Me, and some other people were working on something similar a while ago, though our development is currently on hold. Current features include:
  • Two stations: an orbital station and an outpost on Mars
  • Shuttle to travel between said two stations
  • Barber equipment
  • Mars navigation system similar to pinpointers
  • Hoverjeeps
  • Mining, using pickaxes, drills and automatic stationary processing units
  • Mined rocks are either processed into metal, glass or crystal
  • Crystals are used to produce energy (crystal energy converter)
  • Underground cable shafts to transfer power between Mars outposts (currently unfinished and buggy)

Download the latest source code revision here (unstable):
Code: [Select]
http://svn2.xp-dev.com/svn/MarsStation/trunk/Note to developers: by default, space turfs will be automatically replaced with mars turfs on all Z-levels but the second, this can be changed in /code/defines/turf.dm:37

Pages: [1]