Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preview Gungame Mod
#1
Hello, this is my first try to make a mod for mw2 so please don't be harsh Smile
I won't share just yet the mod because it need cleaning i only have a video uploaded to show you what i made Smile

Some of the features:
  • Perk Streak
  • Knife Downgrade but not upgrading killer's gun
  • Showing what next weapon is, who is the leader etc.


Reply

#2
I dont know if you have solved it, but you have to remove the guns that drop to the ground after you die, because if not players will pick them.
Reply

#3
there is a checker that check's the current weapon of the player, if is not the weapon he must have it removes it and give him the weapon of that level
Reply

#4
How could one disable the drops anyway?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#5
You can make the weapon be deleted in some seconds like:
file: _weapons.gsc
PHP Code:
deletePickupAfterAWhile() { self endon("death"); wait 60; if ( !isDefined( self ) ) return; self delete(); }

or you can disable dropping here:

PHP Code:
dropWeaponForDeath( attacker ) { weapon = self.lastDroppableWeapon; if ( isdefined( self.droppedDeathWeapon ) ) return; if ( level.inGracePeriod ) return; if ( !isdefined( weapon ) ) { /# if ( getdvar("scr_dropdebug") == "1" ) println( "didn't drop weapon: not defined" ); #/ return; } if ( weapon == "none" ) { /# if ( getdvar("scr_dropdebug") == "1" ) println( "didn't drop weapon: weapon == none" ); #/ return; } if ( !self hasWeapon( weapon ) ) { /# if ( getdvar("scr_dropdebug") == "1" ) println( "didn't drop weapon: don't have it anymore (" + weapon + ")" ); #/ return; } if ( weapon != "riotshield_mp" ) { if ( !(self AnyAmmoForWeaponModes( weapon )) ) { /# if ( getdvar("scr_dropdebug") == "1" ) println( "didn't drop weapon: no ammo for weapon modes" ); #/ return; } clipAmmoR = self GetWeaponAmmoClip( weapon, "right" ); clipAmmoL = self GetWeaponAmmoClip( weapon, "left" ); if ( !clipAmmoR && !clipAmmoL ) { /# if ( getdvar("scr_dropdebug") == "1" ) println( "didn't drop weapon: no ammo in clip" ); #/ return; } stockAmmo = self GetWeaponAmmoStock( weapon ); stockMax = WeaponMaxAmmo( weapon ); if ( stockAmmo > stockMax ) stockAmmo = stockMax; item = self dropItem( weapon ); item ItemWeaponSetAmmo( clipAmmoR, stockAmmo, clipAmmoL ); } else { item = self dropItem( weapon ); if ( !isDefined( item ) ) return; item ItemWeaponSetAmmo( 1, 1, 0 ); } /# if ( getdvar("scr_dropdebug") == "1" ) println( "dropped weapon: " + weapon ); #/ self.droppedDeathWeapon = true; item.owner = self; item.ownersattacker = attacker; item thread watchPickup(); item thread deletePickupAfterAWhile(); detach_model = getWeaponModel( weapon ); if ( !isDefined( detach_model ) ) return; if( isDefined( self.tag_stowed_back ) && detach_model == self.tag_stowed_back ) self detach_back_weapon(); if ( !isDefined( self.tag_stowed_hip ) ) return; if( detach_model == self.tag_stowed_hip ) self detach_hip_weapon(); }
Reply

#6
I use disablePlayerUse(<player>) or enablePlayerUse() to disable pickup only for some players (it works the same way as trigger_use)
Reply

#7
Well, i believe it's better to disable weapon drop because it causes less data consuming, like there are less object on the world for the script to care about! Smile
Reply

#8
But the entities are deleted after 60 seconds.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#9
even 1-2 objects are consuming memory not much but they do consume some!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [contest]Leipe GunGame Dountill 66 69,885 01-29-2025, 02:04
Last Post: Terrer
  [Request] modded gungame for combat training ultimate 0 3,646 06-02-2013, 13:14
Last Post: ultimate
  GunGame with doors Mathdu91 22 26,688 04-07-2013, 15:35
Last Post: DYNAMIA
  [Release] Smiles GunGame v2 _Smile_Man_ 8 20,376 04-07-2013, 13:54
Last Post: Borealis
  [Release] SanX GunGame Mod 1.8 d0h! 4 13,706 10-30-2012, 06:01
Last Post: ironcore
  How can i create a Gungame-Server with own weapons? gumpo03 4 7,279 09-06-2012, 20:06
Last Post: JariZ
  More than 18 gungame? mikeoxbig 7 6,968 08-20-2012, 22:18
Last Post: mikeoxbig
  Ranked gungame synaptik 4 5,383 01-29-2012, 13:46
Last Post: kokole
  Help GunGame .cfg atz3 1 4,669 11-11-2011, 18:47
Last Post: Pozzuh
  Help Gungame in Combattraining iMaster 2 3,747 11-06-2011, 17:12
Last Post: iAegle

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.