Addon Entry

Now supporting the newest garrysmods.org

New : UserScript to add a search button to any garrysmod.org download page Script Page Install It!

Mirrors

There are no mirrors, request one in the comment section below.
File: Events Script v1
Version: 0
Garrysmod.org URL: http://www.garrysmod.org/downloads/?a=view&id=132147
Description: Note that yes, to all those people who do lua, this is probably one of the most simplest scripts and is really easy to code but bear in mind I only felt like letting those who could have some use of this and don't know lua.

This is an events script, you can use this via autorun folder in the lua folder of any GMod directory or you can integrate it into your gamemode (works with any gamemode!). To do so, in your init.lua file just put "include('events.lua')" and save your file. Make sure you put the events.lua in your gamemode's gamemode folder otherwise it won't be able to find it and put events.lua in lua/autorun if you don't want to integrate it into the gamemode.

Currently there are 5 different modes stated below:

Model rave:
-This mode sets everyones playermodel a different color every 1.5 seconds.

Weapons:
-Gives a CS:S weapon every 30 seconds

Gravity:
-Changes the gravity ConVar every 20 seconds.

Emotes:
-Emits a random npc sound from the players every 4 seconds.

Dying:
-Emits a sound and damages the player for 1 damage every 3 seconds.

Note if you're not happy with one of the events you can either:
-Not activate it.
-Change one of the values that are making you not want it by altering the code.
-Remove it or comment it out until you can figure out what to do with it later.

I've only really been working on this for a few hours properly so it might not be the best script but I've tested it and it seems to work. (Started the script, arguments work and ends the script)

I thought I'd release this script to show what I've done and can do in lua; although this does not begin to express what I'm fully capable of. I'm constantly learning new things daily and wish to continue doing so.

The only bug I can think of is when you manually end an event it will print as if all of them were active; this shall be fixed once I've spent more time on it in v2.

Hope you enjoy my script as much as I have, it can be pretty useful if you use it correctly.

Thank you for your downloads.




Image: Events