GoldenEye: Source Forums

  • September 21, 2024, 10:58:30 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Question on modifying Live and Let Die mode  (Read 5773 times)

0 Members and 3 Guests are viewing this topic.

Deadly Porkchop

  • Agent
  • *
  • Posts: 8
  • Reputation Power: 0
  • Deadly Porkchop has no influence.
  • Offline Offline
Question on modifying Live and Let Die mode
« on: March 23, 2010, 01:10:23 am »

Hey all, I have another question about changing stuff. Me and a buddy just spent the better part of an hour looking at the Live and Let Die code to try and see if we could make the Baron a tank. We like how he starts off with the damage handicap but we want him to be able to just absorb damage to make him an actual threat early on. We managed to increase the armor he spawns with to 8 but we can't figure out how you go about changing his health or, if there's even a way, to super charge his armor to make it go past 8.

I have a very rudimentary understanding of Python and have been trying to figure it out with no luck. I don't quite understand where in the code it pulls his health from. Any help?
Logged

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Question on modifying Live and Let Die mode
« Reply #1 on: March 23, 2010, 01:52:02 am »

To increase the Baron's health/armor beyond the maximums defined you need to call into:

player.SetMaxHealth( int )    or    player.SetMaxArmor( int )

where player represents a CGEPlayer type object.

Then you can freely set the health and armor using:

player.SetHealth( int )    or    player.SetArmor( int )

Sorry for the poor documentation of our python code in the wiki, its *mostly* correct but I haven't the time to update it atm.

http://wiki.goldeneyesource.net/index.php/Category:Python
« Last Edit: March 23, 2010, 01:55:19 am by killermonkey »
Logged

Deadly Porkchop

  • Agent
  • *
  • Posts: 8
  • Reputation Power: 0
  • Deadly Porkchop has no influence.
  • Offline Offline
Re: Question on modifying Live and Let Die mode
« Reply #2 on: March 23, 2010, 03:08:45 am »

So where do I put that to call it exactly? I can't really seem to pull any help from your wiki, maybe I'm missing something. I thought to try it under lld_declare_baron_data since that's where I changed the amount of armor he actually spawns with but that just blatantly broke the game mode. Do I call it under the class LiveAndLetDie(PYBaseGamePlay): init section? I think I kind of understand how the variables should be set and called I'm just not sure where I I set them. I appreciate the help thus far though.
Logged

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Question on modifying Live and Let Die mode
« Reply #3 on: March 23, 2010, 12:17:54 pm »

Start out at OnPlayerSpawn(self,player): this is where the attributes are assigned after the player spawns into the gameplay. Follow the function calls for the baron from there.

Assignment of the Baron occurs in OnRoundBegin(self):

You might also want to look in: def lld_declare_baron_data(self):


When it comes time for you to make Baron "the tank" look in the function def ShouldDoCustomDamage(self, victim, info, health, armour):


The Wiki is not designed to describe individual gameplays. It just documents the function calls.
« Last Edit: March 23, 2010, 12:21:04 pm by killermonkey »
Logged
Pages: [1]   Go Up