Multi Knife Showing in leader window.

Request a custom addon/script you would like to see made.

Multi Knife Showing in leader window.

Postby lqhnybear » Fri Oct 15, 2010 12:11 pm

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.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Mon Oct 25, 2010 5:33 am

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:
knife
knife
knife
at the bottom of your weapon order.

I believe with the second one, it 'should' only level you down 1 level.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re:

Postby lqhnybear » Mon Oct 25, 2010 8:49 am

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:
knife
knife
knife
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
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Mon Oct 25, 2010 3:35 pm

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Mon Oct 25, 2010 3:41 pm

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. :)
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Mon Oct 25, 2010 6:45 pm

Hmmm, I looked at the code, and it looked perfectly fine, and the following 'should' work:
knife
knife
knife
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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Tue Oct 26, 2010 1:46 am

Sorry just woke up, I'll try it now.
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Re: Multi Knife Showing in leader window.

Postby lqhnybear » Tue Oct 26, 2010 2:41 am

*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
knife.jpg (85.39 KiB) Viewed 30510 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.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Tue Oct 26, 2010 2:57 am

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
popup.jpg (25.64 KiB) Viewed 30505 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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Multi Knife Showing in leader window.

Postby lqhnybear » Tue Oct 26, 2010 3:09 am

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 893 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.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Tue Oct 26, 2010 3:22 am

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Tue Oct 26, 2010 3:39 am

ok thanx again
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Tue Oct 26, 2010 3:47 am

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Tue Oct 26, 2010 3:50 am

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
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Tue Oct 26, 2010 4:02 am

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Tue Oct 26, 2010 6:42 am

Very Cool. Let me know if I can help.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby lqhnybear » Mon Nov 01, 2010 1:04 am

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
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Mon Nov 01, 2010 1:33 am

When I get time, I'll work on a custom addon for that. It will have annoncements and sounds built in as options.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Multi Knife Showing in leader window.

Postby lqhnybear » Mon Nov 01, 2010 7:30 am

Cool deal man.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl



Return to Script Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron