Nade rewarded with gun kill?

Discussion about Included Addons

Nade rewarded with gun kill?

Postby bullethvac » Sat Apr 28, 2012 1:28 am

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
bullethvac

Private
Private
 
Posts: 9
Joined: Mon Apr 23, 2012 8:40 pm

Postby satoon101 » Sat Apr 28, 2012 1:33 am

The Included Addon you are looking for is:
http://wiki.gungame.net/pages/Scripts.i ... _earn_nade

Satoon
satoon101

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

Re: Nade rewarded with gun kill?

Postby bullethvac » Sat Apr 28, 2012 1:25 pm

You are a wealth of knowledge.. Thank you!
bullethvac

Private
Private
 
Posts: 9
Joined: Mon Apr 23, 2012 8:40 pm

Re: Nade rewarded with gun kill?

Postby bullethvac » Sat Apr 28, 2012 5:17 pm

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?
bullethvac

Private
Private
 
Posts: 9
Joined: Mon Apr 23, 2012 8:40 pm

Re: Nade rewarded with gun kill?

Postby bullethvac » Sun Apr 29, 2012 1:08 pm

I apologize for my Mac auto correcting "nade" to made... What confusion!
bullethvac

Private
Private
 
Posts: 9
Joined: Mon Apr 23, 2012 8:40 pm

Postby satoon101 » Sun Apr 29, 2012 3:34 pm

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
satoon101

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

Postby bullethvac » Sun Apr 29, 2012 8:50 pm

Thank you!
bullethvac

Private
Private
 
Posts: 9
Joined: Mon Apr 23, 2012 8:40 pm



Return to Included Addons

Who is online

Users browsing this forum: No registered users and 7 guests

cron