Page 1 of 1

Nade rewarded with gun kill?

PostPosted: Sat Apr 28, 2012 1:28 am
by bullethvac
I am not looking in the correct place I am sure, so hopefully the seasoned can help. My DM server is set up so that upon nade level you also get a sidearm... once the nade is thrown, you are able to shoot an opponent. The part I cannot find is how to make the kill with the sidearm reward you with another nade.

Thanks in advance!

B

PostPosted: Sat Apr 28, 2012 1:33 am
by satoon101
The Included Addon you are looking for is:
http://wiki.gungame.net/pages/Scripts.i ... _earn_nade

Satoon

Re: Nade rewarded with gun kill?

PostPosted: Sat Apr 28, 2012 1:25 pm
by bullethvac
You are a wealth of knowledge.. Thank you!

Re: Nade rewarded with gun kill?

PostPosted: Sat Apr 28, 2012 5:17 pm
by bullethvac
Arghh, everything looks good except I have the settings to give you a ups on made level and to reward that made after a kill with it.. is there a way to make it automatically arm the made as soon as it is earned?

Re: Nade rewarded with gun kill?

PostPosted: Sun Apr 29, 2012 1:08 pm
by bullethvac
I apologize for my Mac auto correcting "nade" to made... What confusion!

PostPosted: Sun Apr 29, 2012 3:34 pm
by satoon101
This is not done by default, but if you wish to have this functionality on your server, you might try modifying your ../addons/eventscripts/gungame51/scripts/included/gg_earn_nade/gg_earn_nade.py file by adding the following at the very end:
   es.delayed(0.01, 'es_xsexec %s use weapon_hegrenade' % userid)
Make sure that that line starts with exactly 4 "spaces" to match the indentation of the rest of the give_nade function.

Satoon

PostPosted: Sun Apr 29, 2012 8:50 pm
by bullethvac
Thank you!