Guest User

Gmod 9 player functions.

a guest
May 23rd, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.27 KB | None | 0 0
  1.  
  2.  
  3. --  DO NOT EDIT THIS FILE!
  4.  
  5. --  This file defines the event callback functions which the engine calls.
  6.  
  7. --  If you want to override these you should override it in a custom script
  8. --   or in your gamemode script. This file should be used as a reference to
  9. --   see which callbacks are available and the correct syntax.
  10.  
  11.  
  12.  
  13.  
  14.     function eventPlayerActive ( name, userid, steamid ) end
  15.     function eventPlayerConnect ( name, address, steamid )  end
  16.     function eventPlayerDisconnect ( name, userid, address, steamid, reason )   end
  17.     function eventPlayerChangeTeam ( name, userid, new_team, old_team ) end
  18.     function eventPlayerKilled ( userid, attacker, weapon ) end
  19.     function eventPlayerNameChange ( userid, newname, oldname )end
  20.     function eventPlayerHurt ( userid, newhealth, attacker )end
  21.     -- Return false to choose a random valid team
  22.     function PickDefaultSpawnTeam( userid ) return false; end
  23.     function eventPlayerSpawn ( userid )end
  24.     -- return true to allow
  25.     function eventPlayerSpawnProp ( userid, propname )  return true; end
  26.     function eventPlayerDuplicateProp( userid, propid ) return true; end
  27.     function eventPlayerSpawnRagdoll ( userid, propname )   return true; end
  28.     function eventPlayerDuplicateRagdoll ( userid, propid ) return true; end
  29.     function eventPlayerPropSpawned( userid, propid )end
  30.     function eventPlayerRagdollSpawned( userid, propid )end
  31.     -- player will "say" the returned string - return nothing ("") to block the say.
  32.     function eventPlayerSay ( userid, strText, bTeam )  return strText; end
  33.     function eventPropBreak ( breakerid, propid ) end
  34.     function eventNPCKilled ( killerid, killed, inflictor ) end
  35.     -- return true if the specified player can pickup the specified item/weapon
  36.     function canPlayerHaveItem( playerid, itemname ) return true;   end
  37.     -- return true to tell the engine that you've taken care of it and to not do default actions
  38.     function eventPlayerUseEntity( playerid, entity ) return false; end
  39.     function eventPlayerInitialSpawn( playerid ) end
  40.    
  41.     function eventKeyPressed( userid, in_key )  end
  42.     function eventKeyReleased( userid, in_key ) end
  43.     function OnBalloonExplode( balloon, killer ) end
  44.    
  45.     function onPhysTakeDamage( ent, inflictor, attacker ) end
  46.     function onTakeDamage( ent, inflictor, attacker, damage ) end
  47.    
  48.  
  49.     -- Return true if the player can delete the speficied entity
  50.     function onPlayerRemove( player, entity ) return true; end
  51.  
  52.     -- Gravity Gun
  53.     function onGravGunPunt( player, entity) return true; end;
  54.     function onGravGunPickup( player, entity) return true; end;
  55.     function onGravGunLaunch( player, entity) return true; end;
  56.     function onGravGunDrop( player, entity) return true; end;
  57.  
  58.    
  59.     -- Physgun
  60.     function onPhysPickup( player, entity ) return true; end;
  61.     function onPhysFreeze( player, entity ) return true; end;
  62.     function onPhysDrop( player, entity ) end;
  63.  
  64.  
  65.     function GetPlayerDamageScale( hitgroup ) return 1.0; end
  66.  
  67. -- These commands are bound to the F keys by default.
  68. -- Help and Team should always do the same things to offer consistency between mods
  69. -- F3 and F4 are up to you - you can use them however you like in your mod.
  70.  
  71.  
  72. -- F1
  73.     function onShowHelp ( userid ) end;
  74.    
  75. -- F2
  76.     function onShowTeam ( userid )  end;
  77.  
  78. -- F3
  79.     function onShowSpare1 ( userid ) end;
  80.  
  81. -- F4
  82.     function onShowSpare2 ( userid ) end;
Add Comment
Please, Sign In to add comment