Difference between revisions of "Talk:Lua Mod API"
Line 10: | Line 10: | ||
- et.trap_SendServerCommand(cno, "kill") - punish client as alternative to setting health<br> | - et.trap_SendServerCommand(cno, "kill") - punish client as alternative to setting health<br> | ||
--[[User:Hadr0|Hadr0]] 02:10, 20 December 2005 (PST)<br> | --[[User:Hadr0|Hadr0]] 02:10, 20 December 2005 (PST)<br> | ||
+ | :You can use et.G_Damage() in the new test version to do that.--[[User:Bani|Bani]] 01:38, 23 December 2005 (PST) | ||
trap sen server cmd is a ET engine trap the comand u send it send to the client and recived as a server command no a client command | trap sen server cmd is a ET engine trap the comand u send it send to the client and recived as a server command no a client command |
Revision as of 09:38, 23 December 2005
- et.G_SlotSound( slotnum, soundindex ) -> Plays the sound soundindex at for the player @ slotnum only. --RoadKillPuppy 14:17, 16 December 2005 (PST)
- you can do this with tempentities and SVF_SINGLECLIENT ...
- --Bani 17:32, 16 December 2005 (PST)
some of this can be done via function et_Print(text).. but this would greatly simplify life,
my wish list for christmas:
- eguid = getUserIAC(cno) - get a clients etpro guid - if consolecommand "guids" can do it, why not Lua
- repair gentity_set for vec3 - scotty fix the transporter please
- et.trap_SendServerCommand(cno, "kill") - punish client as alternative to setting health
--Hadr0 02:10, 20 December 2005 (PST)
- You can use et.G_Damage() in the new test version to do that.--Bani 01:38, 23 December 2005 (PST)
trap sen server cmd is a ET engine trap the comand u send it send to the client and recived as a server command no a client command
to add ill well that would be al ot of coding for not much =FF=Im2good4u 12:12, 20 December 2005 (PST)
aight thnx.
heres another api request, i'd like to be able to get a clients xp directly. et.gentity_get(cno, "sess.game_points") seems to return 0 always (?)
--Hadr0 15:38, 21 December 2005 (PST)
add a way to determine if a client is 999, and if possible why he's 999 (loading, connecting, loosing packets, etc)
--Gotenks
999 means: server has not been sent data from client for > 1000 ms. So there is no way to certainly tell why. The timeoutflag is stored in the pmflags IIRC. Don't know if lua can read them right now. --Deus 23:12, 22 December 2005 (PST)
Access to weapon stats during game similar to end of round stats that are displayed.
--LethalInjection 23:52, 22 December 2005 (PST)