SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Resources

Reply
 
Thread Tools
Simple Key System Details »»
Simple Key System
Version: 1.0, by Xelork (Xelork is Happy to see you.) Xelork is offline
Developer Last Online: Aug 2020

Version: SRB2 Rating: (2 votes - 3.60 average)
Released: 02-20-2020 Last Update: Never Favourites: 1
SOCs Scripts Re-Useable Content Sprites/Graphics

Welcome!

A friend of mine asked me if i could code some sort of key that can open doors on maps, and then, with help of the #scripting at the SRB2 Discord Server, this is now real and also re-usable for everyone!

Very simple to use, you just need to set an activating sector with a tag that will activate a linedef with Call Lua Action, a poly object to work as a door, and a control sector that will rotate the polyobject with a different tag from the sector, and type some things in the lua to make it work. Like this for example:

Code:
local function open1(line, p, sec)
    if keycount == 0
        S_StartSound(p, sfx_kc5d)
    end
    if keycount > 0
        sec.tag = 3
        keycount = $ - 1
        S_StartSound(p, sfx_kc5c)
    elseif keycount == 0
        S_StartSound(p, sfx_kc5d)
    end
end

 addHook("LinedefExecute", open1, "DOOR1")
An example wad is available for reference, and you're free to modify everything!


Major thanks to my friend, TorLes, for the idea and HUD & Key sprites. <3

Download Now

File Type: zip Simple Key System.zip (5.1 KB, 99 views)

Screenshots

Click image for larger version

Name:	srb20037.gif
Views:	314
Size:	7.80 MB
ID:	26932  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 02-23-2020   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

welcome to releases!
D00D64 is offline   Reply With Quote
Old 02-23-2020   #3
Appleblurt
what do you want
 
Appleblurt's Avatar
Default

This is awesome! It opens up a lot of potential for puzzle maps and I personally like 'em!
__________________
Quote:
<Man553> i'm the best at leaking
<a person> I LEAKED SUPER SMASH ULTIMATE
<Man553> hold my beer
Appleblurt is offline   Reply With Quote
Old 02-23-2020   #4
birbhorse
local eevee petter
 
birbhorse's Avatar
Default

Every day, we inch closer and closer back to DOOM.
__________________
--------------
raboot.jpeg
--------------
birbhorse is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.