Jump to content

gaoesa

Management
  • Posts

    4391
  • Joined

  • Last visited

  • Days Won

    167

Reputation Activity

  1. Like
    gaoesa got a reaction from Dragonji in remove self-damage from mines on player who planted them?   
    So you want to enable friendly fire on mines?
     
    More seriously, I don't think there is a way to disable self damage from weapons. This doesn't concern only mines but also grenades and other explosives.
     
    There is no such option to disable the engineer from triggering their own landmine. They need to be able to trigger it for defusing. Tripmines are different as those can be defused without triggering.
  2. Like
    gaoesa got a reaction from alex in Mysql support for players data   
    If you can consider using PostgreSQL, the next version of the mod will have a way to collect game statistics for you.
  3. Like
    gaoesa got a reaction from Zelly in Lua Enhanced Server Module   
    There is also LGPL which lets you enforce that the extension source stays open but it can be used with any software. MIT license of course allows all use.
  4. Like
    gaoesa got a reaction from Dragonji in Lua Enhanced Server Module   
    There is also LGPL which lets you enforce that the extension source stays open but it can be used with any software. MIT license of course allows all use.
  5. Like
    gaoesa got a reaction from Dragonji in The silent source   
    That is the full ET source code release. It includes the game code too though. We are using the ET SDK license. We fork from the ETPub 0.9.1 source code. ETPub was started from the ET SDK release.
  6. Like
    gaoesa got a reaction from Dragonji in The silent source   
    Where did you see the claim that silEnT was licensed under GPL?
     
    Shortcut to the answer, it is not licensed under GPL.
  7. Like
    gaoesa got a reaction from Dragonji in Iron Sighting   
    There has been long discussions about iron sights in the past. In general they don't really fit into the game as the aim mechanics requires fast movements, reactions and tracking. Possible method of trying to make them useful might be to add zoom and make them that way useful for long range. But that would be a completely different game then.
  8. Like
    gaoesa got a reaction from Gramp1 in Spawn with single pistol only?   
    Sorry. I was reading it fast and thought there was something missing from the Lua. But your response was to
     
    One way is to disable light weapons skill level 4. Which is the one that gives akimbos to the players. I.e.
    set skill_lightweapons "20 50 90 -1" http://mygamingtalk.com/wiki/Silent_Mod_Server_Cvar#skill_lightweapons
  9. Like
    gaoesa got a reaction from clan DIABOLIK in sv_trueping   
    I don't know what you mean by overload server CPU. But it sounds unlikely unless it is made significantly different. As in something completely different.
  10. Like
    gaoesa got a reaction from twt_thunder in NQ Team looking for model makers   
    I'm not sure if you know it and it's a joke, but the spelling would be finishing. Finnishing would mean making it Finnish
  11. Like
    gaoesa got a reaction from Jhonny/Shinobi in NQ Team looking for model makers   
    NQ forums:
    http://forums.shitstorm.org/viewforum.php?f=73
  12. Like
    gaoesa got a reaction from clan DIABOLIK in problems to connect on our silent snipers server   
    Oops, my responses in that thread make no sense actually in relation to the presented problems. So it is my fault. I don't know how that has happened.
  13. Like
    gaoesa got a reaction from Nerelan in Silent install   
    I think this video can give you an idea http://mygamingtalk.com/forums/topic/4034-et-server-series/
     
    Also, reading this http://mygamingtalk.com/wiki/index.php/Silent_Mod_Installation should be useful.
     
    EDIT:
    JohnDory was faster.
  14. Like
    gaoesa got a reaction from TimOOn in KR/PRW Lua   
    Sorry, I didn't realize the field names were missing. I added them now. They are sess.overall_killrating and sess.rating for PRW. If you want them in the same format as they are in the scoreboard, the formula for kill rating is:
     
    (1.0 / (1.0+exp(-(sess.overall_killrating*(1.0 / sqrt(1.0+sess.overall_killvariance*3.0/(M_PI*M_PI))))))) / (1.0 - (1.0 / (1.0+exp(-(sess.overall_killrating*(1.0 / sqrt(1.0+sess.overall_killvariance*3.0/(M_PI*M_PI))))))))
     
    ,where M_PI is 3.14159265358979323846
     
    Maybe a bit clearer in Lua
    function kill_probability(net, g_of_x_margin) return 1.0 / (1.0+math.exp(-(net*g_of_x_margin))) end function g_of_x(variance) local M_PI = 3.14159265358979323846 return 1.0 / math.sqrt(1.0+variance*3.0/(M_PI*M_PI)) end function GetKillRating local probability = kill_probability(rating,g_of_x(variance)) return probability / (1.0f - probability) end No guarantees that the script works.
  15. Like
    gaoesa got a reaction from Aciz in Custom command with LUA - problem   
    You could add the admin level to the passed arguments to the function:
    function CheckCommand(clientNum, level, arguments) if( arguments[0] == "!mycommand" ) then et.trap_SendServerCommand(clientNum, "chat \"Your command "..arguments[0].." has been received\"") return 1 end return 0 end function et_ClientCommand(clientNum, command) local level = et.G_shrubbot_level(clientNum) local flood = et.ClientIsFlooding(clientNum) -- we're not interested if the level is too low or if the client is flooding if (level < 1) or (flood == 1) then return 0 end local arg0 = string.lower(et.trap_Argv(0)) local arguments -- check to see if the command was given through any of the chat methods or as sparse text from the console if arg0 == "say" or arg0 == "say_team" or arg0 == "say_buddy" or arg0 == "say_teamnl" then arguments = SplitToArguments(et.trap_Argv(1)) else arguments = SplitToArguments(et.ConcatArgs(0)) end -- actual command handling return CheckCommand(clientNum, level, arguments) end  Or you can declare the variable as close to its intended use as possible. This style is generally preferred when programming:
    function CheckCommand(clientNum, arguments) local level = et.G_shrubbot_level(clientNum) if( (arguments[0] == "!mycommand") and (level >= 1) ) then et.trap_SendServerCommand(clientNum, "chat \"Your command "..arguments[0].." has been received\"") return 1 end return 0 end function et_ClientCommand(clientNum, command) local flood = et.ClientIsFlooding(clientNum) -- we're not interested if the client is flooding if flood == 1 then return 0 end local arg0 = string.lower(et.trap_Argv(0)) local arguments -- check to see if the command was given through any of the chat methods or as sparse text from the console if arg0 == "say" or arg0 == "say_team" or arg0 == "say_buddy" or arg0 == "say_teamnl" then arguments = SplitToArguments(et.trap_Argv(1)) else arguments = SplitToArguments(et.ConcatArgs(0)) end -- actual command handling return CheckCommand(clientNum, arguments) end
  16. Like
    gaoesa got a reaction from hellreturn in New section in Wiki for creting custom commands   
    I finally decided to add a section for creating custom commands. The information has been scattered around and I thought it will make it easier if all of it is in one place.
    http://mygamingtalk.com/wiki/index.php/Silent_Creating_Custom_Commands
     
    Please comment improvements and if you can provide clean short examples for the last two methods, that would be appreciated.
  17. Like
    gaoesa got a reaction from Aciz in Custom command with LUA - problem   
    I added an example to http://mygamingtalk.com/wiki/index.php/Silent_Creating_Custom_Commands You can use that to check issues. Btw, thanks for giving some code to start adding to it.
  18. Like
    gaoesa got a reaction from Dragonji in New section in Wiki for creting custom commands   
    I finally decided to add a section for creating custom commands. The information has been scattered around and I thought it will make it easier if all of it is in one place.
    http://mygamingtalk.com/wiki/index.php/Silent_Creating_Custom_Commands
     
    Please comment improvements and if you can provide clean short examples for the last two methods, that would be appreciated.
  19. Like
    gaoesa got a reaction from Jhonny/Shinobi in New section in Wiki for creting custom commands   
    I finally decided to add a section for creating custom commands. The information has been scattered around and I thought it will make it easier if all of it is in one place.
    http://mygamingtalk.com/wiki/index.php/Silent_Creating_Custom_Commands
     
    Please comment improvements and if you can provide clean short examples for the last two methods, that would be appreciated.
  20. Like
    gaoesa got a reaction from Dragonji in Silent mod (a few problems)   
    Forcing com_hunkMegs does not work. The reson is that the game must be started with the value. Changing it afterwards has no effect.
  21. Like
    gaoesa got a reaction from Dragonji in Weapons indexes   
    MOD_UNKNOWN // 0 MOD_MACHINEGUN // 1 MOD_BROWNING // 2 MOD_MG42 // 3 MOD_GRENADE // 4 MOD_ROCKET // 5 MOD_KNIFE // 6 MOD_LUGER // 7 MOD_COLT // 8 MOD_MP40 // 9 MOD_THOMPSON // 10 MOD_STEN MOD_GARAND MOD_SNOOPERSCOPE MOD_SILENCER MOD_FG42 // 15 MOD_FG42SCOPE MOD_PANZERFAUST MOD_GRENADE_LAUNCHER MOD_FLAMETHROWER MOD_GRENADE_PINEAPPLE // 20 MOD_CROSS MOD_MAPMORTAR MOD_MAPMORTAR_SPLASH MOD_KICKED MOD_GRABBER // 25 MOD_DYNAMITE MOD_AIRSTRIKE MOD_SYRINGE MOD_AMMO MOD_ARTY // 30 MOD_WATER MOD_SLIME MOD_LAVA MOD_CRUSH MOD_TELEFRAG // 35 MOD_FALLING MOD_SUICIDE MOD_TARGET_LASER MOD_TRIGGER_HURT MOD_EXPLOSIVE // 40 MOD_CARBINE MOD_KAR98 MOD_GPG40 MOD_M7 MOD_LANDMINE // 45 MOD_SATCHEL MOD_TRIPMINE MOD_SMOKEBOMB MOD_MOBILE_MG42 MOD_SILENCED_COLT // 50 MOD_GARAND_SCOPE MOD_CRUSH_CONSTRUCTION MOD_CRUSH_CONSTRUCTIONDEATH MOD_CRUSH_CONSTRUCTIONDEATH_NOATTACKER MOD_K43 // 55 MOD_K43_SCOPE MOD_MORTAR MOD_AKIMBO_COLT MOD_AKIMBO_LUGER MOD_AKIMBO_SILENCEDCOLT // 60 MOD_AKIMBO_SILENCEDLUGER MOD_SMOKEGRENADE MOD_SWAP_PLACES MOD_SWITCHTEAM MOD_GOOMBA // 65 MOD_POISON MOD_FEAR MOD_THROWN_KNIFE MOD_REFLECTED_FF // 69 MOD_PPSH // 70 MOD_SHOVE // 71
  22. Like
    gaoesa got a reaction from Dragonji in Custom command with LUA - problem   
    No I meant that the client is sending the say text inside quotes. I.e. /say "text with spaces". That makes the server interpret the full string as one parameter. So you should split the parameter using space as a delimiter and so you get what you need.
  23. Like
    gaoesa got a reaction from Dragonji in LUA et_Obituary   
    Just read the links I posted, it is very clear then. I agree that creating a Lua script is a bit more work. The reasons why we remove certain abilities that were in ETPub, has been to make the experience more consistent to players. Also, some features were pretty much experimental. Couple mistakes were made, but this is not one of those. If you are new to scripting, please read a Lua tutorial first. It will be easy then and Lua is very easy scripting language.
  24. Like
    gaoesa reacted to BECK in New section in Wiki for creting custom commands   
    This is a great idea.  I can provide a simple example of a shrubbot command working with LUA - we have a bunch of working scripts that use this method.   You can use this if you want.
     
     
     
    For the purposes of this example, the command is mycommand.   It will be executed when the uses enters !mycommand in the console, assuming that player has been assigned level 2 or higher shrubbot level.
     
    1. Create your command in the shrubbot file.   Open your shrubbot.cfg file (in silent\database directory) and add the following block:
    [command] command = mycommand exec = mycommand [i] desc = Does something cool for people over level 2 syntax = levels = 2 3 4 5 2.  Create a LUA file in your silent directory on the server.  Call it mycommand.lua (or whatever name you want to give it).   Begin with the following stub:
    function et_ConsoleCommand(command) -- if the user types !mycommand in the console if et.trap_Argv(0) == "mycommand" then -- Do your custom processing here return 1 -- Tells silEnT that this method handled this command end return 0 -- Tells silEnT that this file did not handle this command end 3. Update your server config to load the LUA file.   Add or modify the following server var (lua_modules):
    set lua_modules "mycommand.lua" 4. Restart your server.  Assuming you are shrubbot level 2 or higher, !mycommand will execute and do cool stuff.
  25. Like
    gaoesa got a reaction from TimOOn in LUA et_Obituary   
    Behaviour depends on the g_logOptions flag 1.
    http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_logOptions
×
×
  • Create New...