Difference between revisions of "Talk:Lua Mod API"

From WolfWiki
Jump to: navigation, search
Line 2: Line 2:
 
:you can do this with tempentities and SVF_SINGLECLIENT ...
 
:you can do this with tempentities and SVF_SINGLECLIENT ...
 
:--[[User:Bani|Bani]] 17:32, 16 December 2005 (PST)
 
:--[[User:Bani|Bani]] 17:32, 16 December 2005 (PST)
<br>
+
 
 +
----
 
some of this can be done via function et_Print(text).. but this would greatly simplify life,<br>
 
some of this can be done via function et_Print(text).. but this would greatly simplify life,<br>
 
my wish list for christmas:<br>
 
my wish list for christmas:<br>
- eguid = getUserIAC(cno) - get a clients etpro guid - if consolecommand "guids" can do it, why not Lua<br>
+
- getUserEguid(cno) - get a client's etpro guid?<br>
 
- repair gentity_set for vec3 - scotty fix the transporter please<br>
 
- repair gentity_set for vec3 - scotty fix the transporter please<br>
 
:[http://bani.anime.net/banimod/forums/viewtopic.php?t=6279 fixed.]--[[User:Bani|Bani]] 17:56, 22 December 2005 (PST)
 
:[http://bani.anime.net/banimod/forums/viewtopic.php?t=6279 fixed.]--[[User:Bani|Bani]] 17:56, 22 December 2005 (PST)
Line 20: Line 21:
 
--[[User:Hadr0|Hadr0]] 15:38, 21 December 2005 (PST)
 
--[[User:Hadr0|Hadr0]] 15:38, 21 December 2005 (PST)
 
:oh nevermind, i see this can be done now with xp = et.gentity_get(cno, "ps.stats", 8)
 
:oh nevermind, i see this can be done now with xp = et.gentity_get(cno, "ps.stats", 8)
:nice. . . --[[User:Hadr0|Hadr0]] 16:58, 23 December 2005 (PST)
+
:nice... --[[User:Hadr0|Hadr0]] 16:58, 23 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)<br>
 
add a way to determine if a client is 999, and if possible why he's 999 (loading, connecting, loosing packets, etc)<br>
Line 35: Line 36:
 
Still would like access to the ping, or a dummy variable if they are 999, but also the ammount of time they are inactive.<br>
 
Still would like access to the ping, or a dummy variable if they are 999, but also the ammount of time they are inactive.<br>
 
--[[User:Gotenks|Gotenks]] (Sorry for double post) 1:53, 31 December 2005 (CST)
 
--[[User:Gotenks|Gotenks]] (Sorry for double post) 1:53, 31 December 2005 (CST)
 +
----
 +
Inside function et_ClientCommand(cno, cmd), is there a way of knowing if the client's spam-protection-limit is reached? Could some fieldname or function parameter be added?
 +
--[[User:Hadr0|Hadr0]] 08:48, 14 January 2006 (PST)
  
 
== IPC stuff ==
 
== IPC stuff ==

Revision as of 16:48, 14 January 2006

- 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:
- getUserEguid(cno) - get a client's etpro guid?
- repair gentity_set for vec3 - scotty fix the transporter please

fixed.--Bani 17:56, 22 December 2005 (PST)

- 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)

oh nevermind, i see this can be done now with xp = et.gentity_get(cno, "ps.stats", 8)
nice... --Hadr0 16:58, 23 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)


Still would like access to the ping, or a dummy variable if they are 999, but also the ammount of time they are inactive.
--Gotenks (Sorry for double post) 1:53, 31 December 2005 (CST)


Inside function et_ClientCommand(cno, cmd), is there a way of knowing if the client's spam-protection-limit is reached? Could some fieldname or function parameter be added? --Hadr0 08:48, 14 January 2006 (PST)

IPC stuff


i would like a et_IPCReceive whit an return value so u can send info back on a request

i would like a et_IPCSend that can send to all lua mods then them mods can decide if the wana use that message or not =FF=Im2good4u 12:35, 8 January 2006 (PST)


 et_IPCReceive wouldn't send it to the other mod... afaik... so just use another send
 just et_IPCSend to all modules (afaik, you can even send to ones not there), simple loop function

gotenks 20:04, 8 January 2006 (CST)

yeh probely but its not verry handy its better to get the good vmnumber or to e able to send on mod filenames

apart from that returning a value will be more handy since tnhe u cna contine in 1 funtion else u got to reacise it in the recieve funtion =FF=Im2good4u 10:45, 9 January 2006 (PST)


bani i need a console print function on the client that does sepport ascii plz =FF=Im2good4u 12:49, 12 January 2006 (PST)