-
Posts
530 -
Joined
-
Last visited
-
Days Won
62
Reputation Activity
-
Dragonji reacted to Zelly in special characters and empty names allowed?
Basically I check it once in ClientBegin and I check it in ClientUserInfoChanged
As for the renaming: it will only save for the current round, which isn't ideal, but its better than nothing. ( You could replace it with the !rename command instead, I think that lasts until they disconnect )
function Client:setName(name) if ( name == nil ) then return end if ( string.len(Misc:trim(et.Q_CleanStr(name))) <= 0 ) then return end local userinfo = self:getUserInfo() userinfo = et.Info_SetValueForKey( userinfo, "name", name ) et.trap_SetUserinfo( self.id, userinfo ) et.ClientUserinfoChanged( self.id ) end
I really should open my lua to public lol.
It is hard to copy my code without seeing the entire project.
-
Dragonji reacted to gaoesa 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.
-
Dragonji reacted to twt_thunder in NQ Team looking for model makers
LOL! cool well why not makining if that..
I am redoing the originals first, a shotgun or trenchgun is also made, need to fiddle with animation.. (something that stinks)
And yes we have talked about bringing in a few weapons...
But first I wanna redo the ones ingame allready..
Hopefully I can make them better
some are made :
http://www.thewolfteam.org/index.php/topic,72.0.html
(couldnt post jpg it seemed)
And now working on the carabine
EDIT: Found a pic of my trenchgun too:
-
Dragonji got a reaction from hellreturn in g_spectatorInactivity
It means it might be outdated. I personally always check online docs
-
Dragonji got a reaction from clan DIABOLIK in g_spectatorInactivity
It means it might be outdated. I personally always check online docs
-
Dragonji reacted to hellreturn in g_spectatorInactivity
Moved to support since this feature exist. If you want something more we can always move back to feature section
-
Dragonji got a reaction from hellreturn in g_spectatorInactivity
This is not even official description.
Check this carefully:
http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_inactivityOptions
http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_spectatorInactivity
-
Dragonji got a reaction from Meva in balance.lua + sound
Use this instead: http://mygamingtalk.com/wiki/index.php/Silent_Lua#G_globalSound
et.G_globalSound("playermove.wav") -
Dragonji 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.
-
Dragonji reacted to gaoesa 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.
-
Dragonji reacted to gaoesa 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.
-
Dragonji reacted to gaoesa 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
-
Dragonji reacted to gaoesa 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.
-
Dragonji reacted to gaoesa 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.
-
Dragonji reacted to hellreturn in Problem: Server Disconnected - Missing name field in userinfo
He is basically saying that issue is with the custom menu and not with silent mod menu. silent mod menu works fine.
-
Dragonji reacted to gaoesa in Problem: Server Disconnected - Missing name field in userinfo
Ok. That is a custom menu for changing names made by the admins of the server. The problem is that the menu is updating the name to the server after each keystroke. So when you have deleted the name, it is updating the server with an empty name. You have found a clear bug, but it is in this case caused by custom server modifications.
I tested our menus, which worked correctly when backspacing.
-
Dragonji reacted to Aciz in Daily Logs
Would be awesome to have something such as g_dailyLogs from ETJump implemented into silEnT. Or if not daily, at least have a g_logOptions value that gives you ability to control how big server log becomes until it's "archived" and new log is started. -
Dragonji got a reaction from clan DIABOLIK in Health regeneration for non-medics
I requested it over a year ago, it was ignored however. Your only way to add that is by using Lua.
http://mygamingtalk.com/forums/topic/2583-health-regeneration/
-
Dragonji got a reaction from clan DIABOLIK in Health regeneration
I was thinking about this for some time. If this is ever accepted, it would be the best if one was able to set another regen speeds for assault classes (soldier, engineer, field ops) and sniper class (covert ops).
-
Dragonji got a reaction from Meva in Autopromotion - Enemy Territory LUA
File Name: AutoPromo
File Submitter: Dragon
File Submitted: 20 Feb 2012
File Category: LUA
AutoPromo Lua script which automatically sets admin levels basing on player's XP.
Installation:
1. Unzip.
2. Open the file with notepad and configure it for your needs.
3. Upload it into "silent" folder located on your server.
4. Add "autopromo.lua" to lua_modules cvar.
Click here to download this file
-
Dragonji reacted to Zelly in what glauncher damage to use?
The problem your probably running into is flak jacket, ( 50% less explosive damage for people who have flak jacket )
And most servers let that skill carry over to other classes too not just engineers, I have come to just disable flak jacket altogether as I don't think people should be just launched 50 feet when a grenade hits them directly.
To toggle it for every class when level 4 engy is reached look here:
http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_skills
and if you want to disable it altogether, which admittedly is a bit extreme:
http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#skill_engineer
-
Dragonji reacted to hellreturn in "coudnt load an official pak file"
Either you need to remove pak1, pak2 pk3 files from your server or they need valid 2.6b ET client installation with all pk3;s.
-
-
-
Dragonji reacted to gaoesa in /cg_damagekick
I don't think cg_damageKick adds anything to the game or the experience. True, hit sounds act from time to time like cheats. The rare occations are acceptable in my opinion as they also add to the experience.