Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC features #6250

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code/modules/vehicles/arc/arc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

interior_map = /datum/map_template/interior/arc

passengers_slots = 3
passengers_slots = 4
xenos_slots = 5

entrances = list(
Expand All @@ -28,6 +28,7 @@
entrance_speed = 0.5 SECONDS

required_skill = SKILL_VEHICLE_LARGE
driving_access = ACCESS_MARINE_COMMAND

movement_sound = 'sound/vehicles/tank_driving.ogg'

Expand Down
5 changes: 4 additions & 1 deletion code/modules/vehicles/interior/interactable/seats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

// Which vehicle skill level required to use this
var/required_skill = SKILL_VEHICLE_SMALL
req_access = list()
Diegoflores31 marked this conversation as resolved.
Show resolved Hide resolved

/obj/structure/bed/chair/comfy/vehicle/ex_act()
return
Expand Down Expand Up @@ -79,7 +80,9 @@
if(target == user)
to_chat(user, SPAN_WARNING("You have no idea how to drive this thing!"))
return FALSE

if(!allowed(target))
to_chat(user, SPAN_WARNING("The driving console blinks as it refuses your ID, Access Denied"))
Diegoflores31 marked this conversation as resolved.
Show resolved Hide resolved
return FALSE
if(vehicle)
vehicle.vehicle_faction = target.faction

Expand Down
2 changes: 2 additions & 0 deletions code/modules/vehicles/interior/interior_landmarks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
S.layer = layer
S.vehicle = I.exterior
S.required_skill = S.vehicle.required_skill
S.req_access += S.vehicle.driving_access
S.setDir(dir)
S.alpha = alpha
S.update_icon()
Expand Down Expand Up @@ -116,6 +117,7 @@
S.icon_state = icon_state
S.vehicle = I.exterior
S.required_skill = S.vehicle.required_skill
S.req_access += S.vehicle.driving_access
S.setDir(dir)
S.update_icon()
S.alpha = alpha
Expand Down
2 changes: 1 addition & 1 deletion code/modules/vehicles/multitile/multitile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

// The amount of skill required to drive the vehicle
var/required_skill = SKILL_VEHICLE_SMALL

var/driving_access = null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code doc


req_access = list() //List of accesses you need to enter
req_one_access = list() //List of accesses you need one of to enter
Expand Down
Loading