Maps having their own LUA code

AndosAndos Join Date: 2003-10-17 Member: 21742Members
edited May 2007 in Ideas and Suggestions
Idea:
Allow mappers to create LUA that runs only for their map to control various things. It should just act as the inbuilt "event" system the HL2 engine already has but LUA could allow more interesting stuff. For example a clever mapper could write a little algorithm figuring out which team is close to winning by monitoring deaths and player movement and change small details in the map or gameplay)
(Think making custom game-modes per map like in Warcraft 3)
As I understood it, the LUA implementation in NS2 is so far only for the server-side (game logic) and some for client-side non-important stuff.

That way you could play a map with a different game-mode than the original game without having to join a server dedicated to those changes. (So one map = normal, next map = defend the base-kinda map, next map = left4dead kinda map, next map = normal gameplay again)

Those were just wild ideas, here are some more useful ones:
LUA code that controls various special effects that can't easily be controlled through the HL2 event engine.
For example a working cargo loading machine that will refuse to operate as long as it detects organic life in an area. Maybe this can be done in the event engine but it would allow much more flexibility in the creation of dynamic environments that interact more with the players.
Another idea would be to code a door that opens like in Prey (the closer you get the more the door will open)

Comments

  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    <!--quoteo(post=1625796:date=May 9 2007, 01:05 AM:name=Andos)--><div class='quotetop'>QUOTE(Andos @ May 9 2007, 01:05 AM) [snapback]1625796[/snapback]</div><div class='quotemain'><!--quotec-->
    Idea:
    Allow mappers to create LUA that runs only for their map to control various things. It should just act as the inbuilt "event" system the HL2 engine already has but LUA could allow more interesting stuff. For example a clever mapper could write a little algorithm figuring out which team is close to winning by monitoring deaths and player movement and change small details in the map or gameplay)
    (Think making custom game-modes per map like in Warcraft 3)
    As I understood it, the LUA implementation in NS2 is so far only for the server-side (game logic) and some for client-side non-important stuff.

    That way you could play a map with a different game-mode than the original game without having to join a server dedicated to those changes. (So one map = normal, next map = defend the base-kinda map, next map = left4dead kinda map, next map = normal gameplay again)

    Those were just wild ideas, here are some more useful ones:
    LUA code that controls various special effects that can't easily be controlled through the HL2 event engine.
    For example a working cargo loading machine that will refuse to operate as long as it detects organic life in an area. Maybe this can be done in the event engine but it would allow much more flexibility in the creation of dynamic environments that interact more with the players.
    Another idea would be to code a door that opens like in Prey (the closer you get the more the door will open)
    <!--QuoteEnd--></div><!--QuoteEEnd-->

    If I get what you are talking about...I think that is a crazy idea. I hate that map (forget the name) that the doors open once then wait for like 5 seconds before they like open again even tho you are just sitting infront of the door. Good idea... dont forget to implement the prey affect of walking on ceilings/walls too...lol with the shooting of the gravity things. That would be insane for game play. Low gravity rooms would be interesting too.
Sign In or Register to comment.