Advertisement
A2THRE100

addon_game_mode

May 3rd, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. if GameMode == nil then
  2.     _G.GameMode = class({})
  3. end
  4. function GameMode:OnHeroInGame(hero)
  5.     Attributes:ModifyBonuses(hero)
  6. end
  7. function Precache( context )
  8.     PrecacheItemByNameSync("item_stat_modifier", context)
  9.     --[[
  10.         Precache things we know we'll use.  Possible file types include (but not limited to):
  11.             PrecacheResource( "model", "*.vmdl", context )
  12.             PrecacheResource( "soundfile", "*.vsndevts", context )
  13.             PrecacheResource( "particle", "*.vpcf", context )
  14.             PrecacheResource( "particle_folder", "particles/folder", context )
  15.            
  16.     ]]
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement