Page 1 of 1
Multi Knife Showing in leader window.
Posted:
Fri Oct 15, 2010 12:11 pm
by lqhnybear
I run my server where the final level is knife, of course, but people whom get to knife need to get 3 knife kills to win. Currently the way it's setup if a person has 2 knife kills and gets knifed by some one whom can steal a level they drop all the way back to nade. My question is two fold
1. Can it an addon be written to allow some one who is on knife level to only go back one knife if they are knifed on their 2nd level?
2. Is it possible to some how let people know which level of the knife people are on? Right now the only way people know is by the person talking [CENSORED] over their mic and announcing it. lol Like would it be possible to show the other user that they're on knife 1, 2, etc etc and maybe even have a sound file that says "Player is on knife level 1" "Player is on knife level2" etc etc. Maybe it could just be the numbers added in at the end since it already says "player is on knife level" have a second trigger that announces the number after.
Posted:
Mon Oct 25, 2010 5:33 am
by satoon101
Sorry for the late reply. I've been wanting to test some things out, but my server system is still down for the count
I do have one quick question. How do you have multiple Knife Levels set up? Do you have:
or:
at the bottom of your weapon order.
I believe with the second one, it 'should' only level you down 1 level.
Satoon
Re:
Posted:
Mon Oct 25, 2010 8:49 am
by lqhnybear
Np,I trust you saw my PM? I know how hectic things can be sometimes and I appreciate your time.
I am doing 3 knives like this:
if I set it up like this:
The server only registers one knife and doesn't make people get 3 knives. For some reason GG won't see knife being listed in the file 3 times.
Even if I could get this to work, I'd still be running into the issue of having people not know what knife level people are on, as the only thing they could go by is the level number. hmmmm
Posted:
Mon Oct 25, 2010 3:35 pm
by satoon101
Ok, I'll have to look more into this when I get the chance. The way it 'should' work is the second way, with 3 different "knife" entries in the weapon_order. Using "knife 3" is really only 1 Knife Level, just with a multikill of 3 needed. Once we can get the 3 different knife entries to work correctly, it would be fairly easy to create a custom addon that checks the weapon_order for it, and send messages/sounds when the first knife levels are reached.
Satoon
Posted:
Mon Oct 25, 2010 3:41 pm
by lqhnybear
Yeah I tried looking around for why it wasn't working with 3 knives listed separately but as I fail at code, lol, I found nothing.
Thanx for the help man. I'm gonna send you a PM too with something to look over.
Posted:
Mon Oct 25, 2010 6:45 pm
by satoon101
Hmmm, I looked at the code, and it looked perfectly fine, and the following 'should' work:
So, I decided to run a quick test with some bots, and sure enough, it worked perfectly. Could you retry that to fully verify it does/doesn't work for you? Please let us know your results.
Satoon
Posted:
Tue Oct 26, 2010 1:46 am
by lqhnybear
Sorry just woke up, I'll try it now.
Re: Multi Knife Showing in leader window.
Posted:
Tue Oct 26, 2010 2:41 am
by lqhnybear
*EDIT* I just PM'd ya the server info if you wish to go in and tinker with it. *EDIT*
Nope no luck. Here is the current weapons order file.
@ Default Weapon Order
glock
usp
p228
deagle
fiveseven
elite
m3
xm1014
tmp
mac10
mp5navy
ump45
p90
galil
famas
ak47
scout
m4a1
sg550
sg552
g3sg1
aug
m249
awp
hegrenade
knife
knife
knife
and I get this as the weapon order list.
- knife.jpg (85.39 KiB) Viewed 30523 times
I played the game out, with bots, and it took me 1 knife to win, went to the next map and again 1 knife to win.
Posted:
Tue Oct 26, 2010 2:57 am
by satoon101
Hmmm, well, it works for me. When I first load GunGame, it shows the weapon_order correctly:
[GunGame] Weapon Order: default_weapon_order
[GunGame] +-------+-----------+---------------+
[GunGame] | Level | Multikill | Weapon |
[GunGame] +-------+-----------+---------------+
[GunGame] | 1 | 1 | glock |
[GunGame] | 2 | 1 | usp |
[GunGame] | 3 | 1 | p228 |
[GunGame] | 4 | 1 | deagle |
[GunGame] | 5 | 1 | fiveseven |
[GunGame] | 6 | 1 | elite |
[GunGame] | 7 | 1 | m3 |
[GunGame] | 8 | 1 | xm1014 |
[GunGame] | 9 | 1 | tmp |
[GunGame] | 10 | 1 | mac10 |
[GunGame] | 11 | 1 | mp5navy |
[GunGame] | 12 | 1 | ump45 |
[GunGame] | 13 | 1 | p90 |
[GunGame] | 14 | 1 | galil |
[GunGame] | 15 | 1 | famas |
[GunGame] | 16 | 1 | ak47 |
[GunGame] | 17 | 1 | scout |
[GunGame] | 18 | 1 | m4a1 |
[GunGame] | 19 | 1 | sg552 |
[GunGame] | 20 | 1 | aug |
[GunGame] | 21 | 1 | m249 |
[GunGame] | 22 | 1 | hegrenade |
[GunGame] | 23 | 1 | knife |
[GunGame] | 24 | 1 | knife |
[GunGame] | 25 | 1 | knife |
[GunGame] +-------+-----------+---------------+
As well as in-game, it shows the correct weapons:
- popup.jpg (25.64 KiB) Viewed 30518 times
I'm not sure how I can really tinker around. It 'should' just work. Are you sure you are modifying the correct weapon_order file?
Satoon
Re: Multi Knife Showing in leader window.
Posted:
Tue Oct 26, 2010 3:09 am
by lqhnybear
Yes sir, I edited the default_weapon_order.txt
Just figured you might be able to run some commands or something to check stuff out in there. Here, this may be more helpful.
- gungame51.rar
- complete rar of my /cfg/gungame51 directory.
- (67.36 KiB) Downloaded 894 times
Maybe one of the customs addons isn't playing nice or the combination of reg addons I'm using the server doesn't like.
Posted:
Tue Oct 26, 2010 3:22 am
by satoon101
Yep, it is definitely something in your configs. All I did was replace your configs with mine, and change that default_weapon_order to the 3 different knife entries, and it does just as you said. I'll have to look through and see if I can find out what is causing the conflict. I'll get back with you when I get it figured out.
Satoon
Posted:
Tue Oct 26, 2010 3:39 am
by lqhnybear
ok thanx again
Posted:
Tue Oct 26, 2010 3:47 am
by satoon101
Found it:
..cfg/gungame51/gg_en_config.cfg wrote:// ============================================================================
// >> WEAPON ORDER SORT TYPE
// ============================================================================
// Options:
// #default = Order will go Top -> Bottom.
// #reversed = Order will go Bottom -> Top.
// #random = Order will be randomly shuffled.
// Note:
// #reversed and #random sort types will move hegrenade and knife levels
// to the end of the order.
// Default Value: "#default"
// The order in which the weapons and levels will be sorted.
gg_weapon_order_sort_type "#random"
Setting that back to #default made there be 3 knife levels. I know that isn't ideal, but for now, just know that that is what is causing the issue.
Satoon
Posted:
Tue Oct 26, 2010 3:50 am
by lqhnybear
hmm, so there is a problem with the random eh? That stinks. We like the random.
Knowing you though you're probably already digging through the code trying to figure out why. LOL
Posted:
Tue Oct 26, 2010 4:02 am
by satoon101
Lol, yup, already got a fix. Not sure if it has any negative effects, though, so we'll probably need to do some more testing before releasing it.
Satoon
Posted:
Tue Oct 26, 2010 6:42 am
by lqhnybear
Very Cool. Let me know if I can help.
Posted:
Mon Nov 01, 2010 1:04 am
by lqhnybear
Any word on knife level announces, or for that matter nade level announces?
Player is on Nade/Knife Level 1
Player is on Nade/Knife Level 2
Player is on Nade/Knife Level 3
etc
etc
Posted:
Mon Nov 01, 2010 1:33 am
by satoon101
When I get time, I'll work on a custom addon for that. It will have annoncements and sounds built in as options.
Satoon
Re: Multi Knife Showing in leader window.
Posted:
Mon Nov 01, 2010 7:30 am
by lqhnybear
Cool deal man.