ItsMods
Nade Throwback - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Nade Throwback (/Thread-Nade-Throwback.html)



Nade Throwback - Pyroh - 07-10-2011

Does anybody know how to remove grenade throwback? I recall reading someplace a while ago to set the nade pickup radius to 0 but i can't remember the dvar to do so and can only find 1 in my dvarlist but not sure if it's it.


RE: Nade Throwback - Pyroh - 07-11-2011

bump

5char


RE: Nade Throwback - Cyborgking - 07-11-2011

I think I found it but I am not able to test it now:
In your _weapons.gsc found in: maps/mp/gametypes
You should see a block something like this:
Code:
watchGrenadeUsage() { self endon( "death" ); self endon( "disconnect" ); self.throwingGrenade = false; self.gotPullbackNotify = false; self thread beginOtherGrenadeTracking(); self thread watchForThrowbacks(); self thread watchForGrenadeDuds(); self thread watchForGrenadeLauncherDuds(); for ( ;; ) { self waittill ( "grenade_pullback", weaponName ); self setWeaponStat( weaponName, 1, "shots" ); self.hasDoneCombat = true; /*if ( weaponName == "claymore_mp" ) continue;*/ self.throwingGrenade = true; self.gotPullbackNotify = true; if ( weaponName == "satchel_charge_mp" ) { self thread beginSatchelTracking(); } self thread beginGrenadeTracking(); } }
Now you should change this:
Code:
self thread watchForThrowbacks();
To this
Code:
//self thread watchForThrowbacks();
This way the thread won't start because it is a comment now.


RE: Nade Throwback - Scripts18 - 07-11-2011

(07-11-2011, 07:55)Cyborgking Wrote: I think I found it but I am not able to test it now:
In your _weapons.gsc found in: maps/mp/gametypes
You should see a block something like this:
Code:
watchGrenadeUsage() { self endon( "death" ); self endon( "disconnect" ); self.throwingGrenade = false; self.gotPullbackNotify = false; self thread beginOtherGrenadeTracking(); self thread watchForThrowbacks(); self thread watchForGrenadeDuds(); self thread watchForGrenadeLauncherDuds(); for ( ;; ) { self waittill ( "grenade_pullback", weaponName ); self setWeaponStat( weaponName, 1, "shots" ); self.hasDoneCombat = true; /*if ( weaponName == "claymore_mp" ) continue;*/ self.throwingGrenade = true; self.gotPullbackNotify = true; if ( weaponName == "satchel_charge_mp" ) { self thread beginSatchelTracking(); } self thread beginGrenadeTracking(); } }
Now you should change this:
Code:
self thread watchForThrowbacks();
To this
Code:
//self thread watchForThrowbacks();
This way the thread won't start because it is a comment now.



Hum you know you can do that in 1 click on the asset manager? just uncheck the box for throwing back


RE: Nade Throwback - Cyborgking - 07-11-2011

Lol I didn't know that. Smile
Well atleast modifying a script gives you more options than the asset manager. You could easely for example say that only player x has grenades that can't be thrown back or only player Y can throw back grenadesk.


RE: Nade Throwback - Pyroh - 07-11-2011

I'll try it out when i get back from work, ty for the help Smile


RE: Nade Throwback - Scripts18 - 07-11-2011

(07-11-2011, 14:20)Cyborgking Wrote: Lol I didn't know that. Smile
Well atleast modifying a script gives you more options than the asset manager. You could easely for example say that only player x has grenades that can't be thrown back or only player Y can throw back grenadesk.

Yea probably, but I doubt any one would so such a thing execpt admin that need to be better than players XD, something that I dont need


RE: Nade Throwback - Cyborgking - 07-12-2011

(07-11-2011, 21:25)Scripts18 Wrote:
(07-11-2011, 14:20)Cyborgking Wrote: Lol I didn't know that. Smile
Well atleast modifying a script gives you more options than the asset manager. You could easely for example say that only player x has grenades that can't be thrown back or only player Y can throw back grenadesk.

Yea probably, but I doubt any one would so such a thing execpt admin that need to be better than players XD, something that I dont need
It can also be used for others things I hope(I hate admin mods Tongue). You could use it for a mod that changes the game every minute(one minute headshots kill only, one minute no grenade throwback, etc) or make it a perk that players can buy in a gamemode. I guess it could even be used for a roll the dice mod.



RE: Nade Throwback - Scripts18 - 07-12-2011

(07-12-2011, 14:06)Cyborgking Wrote:
(07-11-2011, 21:25)Scripts18 Wrote:
(07-11-2011, 14:20)Cyborgking Wrote: Lol I didn't know that. Smile
Well atleast modifying a script gives you more options than the asset manager. You could easely for example say that only player x has grenades that can't be thrown back or only player Y can throw back grenadesk.

Yea probably, but I doubt any one would so such a thing execpt admin that need to be better than players XD, something that I dont need
It can also be used for others things I hope(I hate admin mods Tongue). You could use it for a mod that changes the game every minute(one minute headshots kill only, one minute no grenade throwback, etc) or make it a perk that players can buy in a gamemode. I guess it could even be used for a roll the dice mod.


ok you win...