Skip to content

zX3no/Areate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Areate

Workshop

Scripts

📦vscripts
 ┣ 📜main.nut
 ┣ 📜globals.nut
 ┣ 📜vs_eventlistener.nut
 ┣ 📜vs_events.nut
 ┗ 📜vs_library.nut

main.nut

The entry point, called from hammer with a logic_script entity.

  • round_start

    • Bots are kicked unless enabled.
    • Players are instantiated and given a unique id.
    • Players weapons are equiped.
    • If it's round 0 the help menu will be printed.
  • player_say:

    • Parses player input and executes the corresponding command.

globals.nut

Holds the state of players, game options and available weapons.

vs_eventlistener, vs_events & vs_library

Used for listening to in-game events. The library can be found at samisalreadytaken/vs_library.

Map Entities

  • logic_eventlistener

    • targetname: vs.eventlistener
  • point_template

    • Entity Scripts: vs_eventlistener.nut
    • Template01: vs.eventlistener

    These two entities are used to capture in-game events such as: player_spawn, player_say, round_start.

  • logic_script

    • Entity Scripts: main.nut

    Runs the gamic logic.

  • move_rope

    • Entity Scripts: globals.nut

    A move_rope is used to store persitant data. I don't konw why this works but it does.

  • game_player_equip

    • Name: equip_strip

    Used to remove weapons from players.

Commands

Command Function Parameters Example
weapon/w Gives the player any weapon. !w will list all available weapons. Any weapon name. !w m4a4
random/r Randomizes the weapons given. Primary, Secondary, Knife, Competitive. !r primary
armour/a Toggles kevlar. !a
helmet/helm Toggles helmets. !helm
headshot/hs Toggles headshot only. !hs
bumpmines/b Gives bumpmines at the start of the round. !b
bot Toggles bots. !bot
help/h Displays a list of every command. !h
reset Legacy command to fix userid errors. !reset

Command abbreviations can be found here.

About

A four player map for Counter-Strike.

Topics

Resources

License

Stars

Watchers

Forks