You are not logged in.
Pages: 1
Here's the adapted version of dynamite_counter.lua for N!tmod. (Adapted by gaoesa)
It was in 1.3 package but I forgot to add it in 1.4.
Offline
Cool script, thanks
Offline
Nice man..
Offline
Thank you very much for this LUA script.
I've just switched from Jaymod to Nitmod and this is perfect - very impressed!
Offline
It is possible too put here sounds ? and how ?
MESSAGE.DEFAULT = "^1<TIME> ^wSeconds till explosion!!"
MESSAGE[20] = "^a<TIME> ^wSeconds till ^2<PLACE> ^wexplosion!!"
MESSAGE[10] = "^a<TIME> ^wSeconds till ^2<PLACE> ^wexplosion!!"
MESSAGE[3] = ""
MESSAGE[2] = ""
MESSAGE[1] = ""
MESSAGE[0] = "^1>>> B00M <<<"
Offline
Thx for the script.
It is possible too put here sounds ? and how ?
I think that you have to modify the source code, but don't know how
Offline
Plop Nitrox !
Il y a un petit problème avec le lua :
Quand on plante une dynamite et qu'on la diffuse, on a quand même l'affichage du décompte.
Sauf si j'ai raté un réglage?
Last edited by Doc (19-Feb-14 23:16:31)
Offline
J'imagine que ca arrive seulement si tu la defuse toi même ? Ca fait un moment que j'ai pas réellement joué, mais si ma mémoire est bonne, c'est probablement car ce genre de defuse ne génère aucun evenement que le LUA puisse intercepter.
Je pense que le problème peut seulement être fixé à l'intérieur du mod, et pas par LUA. je regarderais
Offline
J'imagine que ca arrive seulement si tu la defuse toi même ?
Oui c'est exactement ça.
Offline
Je viens de fixer le problème, bien qu'on ne puisse pas vraiment considérer cela comme un bug car il n'est pas logique (dans un déroulement "normal" du jeu) qu'on defuse une dyna qu'on a planté pour détruire un objectif...
[ENGLISH]
So, Doc reported that when using this LUA, dynamite counter doesn't stop if you defuse your own dynamite near an enemy objective.
I've fixed the problem, even though i don't think we can really consider this is a bug since it doesn't make sense in a "normal" gameplay, to defuse a dynamite we had planted to destroy something...
I've made a nice fix, so if someone creates a LUA that parse these console prints, he will have more infos.
Here's an example of what the fix changed (assuming we're playing on supply map):
When the dynamite is planted, output is the same as before:
nitmod popup: allies planted "the Forward Bunker Gate"
If the dynamite is disarmed by its owner:
nitmod popup: owner defused "the Forward Bunker Gate"
If the dynamite is disarmed by a teammate (note that some servers avoid this situation by using g_misc flag 1):
nitmod popup: teammate defused "the Forward Bunker Gate"
If the dynamite is disarmed by an enemy (same behavior if the dynamite's owner changes team and disarms his own dynamite):
nitmod popup: axis defused "the Forward Bunker Gate"
I've also fixed a bug with objective announces, sometimes when arming a dynamite that we didn't set, the announce was awarded to the player who set it instead of ourself.
Offline
NIce one I was looking for this...
But It didnt work so what did I do wrong.
I copied the tekst into notepad and saved it as a lua file. (filename is dynamite_counter.lua --> save as type; all files.
I stopped my server and uploaded the file into my nitmod dir.
I changed the line in my nitmod.cfg form set lua_modules "" to set lua_modules "dynamite_counter.lua"
And uploaded the nitmod.cfg to the nitmod dir.
I didnt change set lua_allowedModules "
Then I rebooted my server.
In the consule I see: Lua API: Loading dynamite_counter.lua
But when I'm ingame I dont see a counter???
So what did I do wrong???
Thx D.
Last edited by -=AN=-Duke (23-Jun-15 14:25:08)
Offline
Is there any way to make like for example the: the Old City Wall in big letters: THE OLD CITY WALL?
Offline
Pages: 1