Author Topic: Remove bullets in Last Stand Perk  (Read 2219 times)

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Remove bullets in Last Stand Perk
« on: December 18, 2008, 07:35:34 am »
Similar to the Last Stand Perk in COD 4, COD 5 has this in the game.

However, in COD 5 it also allows players to revive team members.

Is it possible to have the option to remove the rounds so that when someone hits Last Stand, their pistols are empty?

This way we can choose to remove the pistol pull part but still have the ability to revive other players.

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Remove bullets in Last Stand Perk
« Reply #1 on: December 18, 2008, 09:16:56 am »
Interesting idea :) will look into it

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Re: Remove bullets in Last Stand Perk
« Reply #2 on: January 29, 2009, 10:46:08 am »
I've been pestering others on this.

Although you are probably all over it, this is the best response I've gotten outside of this group.

"Should be easy - if you find the code sections (in _globallogic I would imagine - the calls at least) you could use the DisableWeapons() function on the player and when they are revived use EnableWeapons()

However, along with it being all Greek to me, I don't see how this would make it an option rather than just cut them out entirely.

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Remove bullets in Last Stand Perk
« Reply #3 on: January 29, 2009, 11:18:27 am »
Last Stand ((in COD5)) was moved out of _globallogic.gsc and into its own gsc file

Last Stand uses the colt_mp weapon file -- so if you edit that for zero ammo, you also edit that for ingame use aswell :(

Hmmmmmm


maps/mp/_laststand.gsc

Code: [Select]
// the last stand pistol is given after the weaponslist is made
self giveWeapon( self.laststandpistol );
self switchToWeapon( self.laststandpistol );
if ( level.amountOfLastStandPistolAmmoInClip == 0 && level.amountOfLastStandPistolAmmoInStock == 0 )
{
self GiveMaxAmmo( self.laststandpistol );
}
else
{
self SetWeaponAmmoClip( self.laststandpistol, level.amountOfLastStandPistolAmmoInClip );
self SetWeaponAmmoStock(  self.laststandpistol, level.amountOfLastStandPistolAmmoInStock );
}

Might be just as simple as commenting out the section about AFTER the weapons list is made.  The code above removes all your weapons, gives you the colt_mp, sets the max amout of ammo, etc, etc.  So by theory, commenting that out, the end result should be removing all your weapons, giving you nothing, then giving back your weapons when Last Stand is done

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Re: Remove bullets in Last Stand Perk
« Reply #4 on: January 29, 2009, 11:23:03 am »
O_O......>_<.......O_<......>_O.....-_-........

I think the vein in my forehead just burst lol.

DAMMIT THIS PARACHUTE IS A BACKPACK.........

Well, guess tomorrow, I'll be grabbing a case of Corona and sitting down to start diggin lol.

Hell, how much damage could I possibly do.......anyone seen my shoe?

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Remove bullets in Last Stand Perk
« Reply #5 on: January 29, 2009, 11:33:27 am »
Another idea ;)

level.laststandpistol = "colt_mp";

Change that to

level.laststandpistol = "defaultweapon_mp";

Then in defaultweapon_mp set the ammo to Zero :)

Might work might not

Offline tcbuster

  • Rank: Private
  • *
  • Posts: 168
    • http://www.thecompanyhub.com/
Re: Remove bullets in Last Stand Perk
« Reply #6 on: January 29, 2009, 09:37:50 pm »
How about just giving them one round...lol! or you could just shorten the time they are in Last Stand.

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Re: Remove bullets in Last Stand Perk
« Reply #7 on: January 30, 2009, 09:41:47 am »
I figure, first it would affect wpn overall if done generallyas Joker mentioned a couple posts above.

The unfortunate part of shortening bleed out time is then you have no time to revive your team mate, thus negating the whole purpose of the perk.

As I see it, one might as well disable the perk completely in that case.

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Remove bullets in Last Stand Perk
« Reply #8 on: January 30, 2009, 09:43:28 am »
JimmyCorps -- Have you managed to give any of the suggestions above a try yet?

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Re: Remove bullets in Last Stand Perk
« Reply #9 on: January 30, 2009, 09:54:40 am »
Yup...got that case of corona sorted out........all set ........now...where's that switchy thing that puts pictures on my flat tv screen thing that i type on..........

I'll be looking into it over the weekend as I am wrapped up tight now with our 4 servers, website, research and work.......almost 3 % of your total workload Joker.....lol

I'll let you know what I find.

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Remove bullets in Last Stand Perk
« Reply #10 on: January 30, 2009, 09:58:02 am »
*LMAO*  Will do -- I should be around most the weekend

I do have do work some on Saturday and Sunday, but that should be like 4am - Noon so should be good after that.

Offline OLDPHARTSHaiPing

  • Rank: Private
  • *
  • Posts: 47
Re: Remove bullets in Last Stand Perk
« Reply #11 on: January 30, 2009, 12:39:20 pm »
I read this post and now I have an ice cream headache.

Offline JimmyCorps

  • Rank: Private
  • *
  • Posts: 125
    • http://www.canuckgamer.ca
Re: Remove bullets in Last Stand Perk
« Reply #12 on: February 02, 2009, 09:13:38 am »
Ok, unfortunately, I got squat done Joker.

With this whole no patch no server deal going on, RF have fired up what appears to be a successful BF2 server....Setting this damn thing up...and of course testing....lol....lots of R&D on it, I ran out of time but will be looking into it over the week...hopefully. Will update once I have something.

Offline zesteph

  • Rank: Private
  • *
  • Posts: 31
    • http://ltbteam.freeheberg.com
Re: Remove bullets in Last Stand Perk
« Reply #13 on: February 15, 2009, 10:33:20 am »
yes good idea this suggest :)