Editing and Customization > General Discussion

Question??

<< < (6/10) > >>

kidx:
Your small minded i am talking about LTK rules why not have Live and let Die LTK rules in stead of DM like a whole fucking clip or more to kill and that's why my server gets hits alot and i can fill servers cause LTK rules DM BLOWS please make us more game types for LTK like LTK CTF,LTK Live And Let Die,Living Daylights we need a variety not hard to add that in as options just lazy FFA LTK Gets Boring do i have to get more LTK players to post here supporting my statment.

namajnaG:

--- Quote from: Proxie on February 04, 2011, 05:46:14 am ---





Just thought I would put this here.

--- End quote ---

Sir, You made my day.

markpeterjameslegg:

--- Quote from: kidx on February 04, 2011, 08:53:23 am ---B-Tards In Da House show some copy right proof.

--- End quote ---

Zzz... Snore... Zzz... Snore... Zzz... Snore... Zzz... Snore... Zzz... Snore... Zzz... Snore...


--- Quote from: Sud0209 on February 04, 2011, 02:54:22 pm ---Long time reader 1st time poster! gotta say i love this site. Kidx also gotta say it sounds like a really good idea and i cant figure out why these whinny people are giving you a hard time. Only little dumb asses bitch about grammar and dumb shit. Can someone prove the thing about the copyright? still waiting to see about that...

--- End quote ---

Zzz... Snore... Zzz... Snore... Zzz... Snore... Zzz... Snore... Zzz... Snore...

Edit: Don't double post. - Sarge

coolDisguise:

--- Quote from: kidx on February 04, 2011, 06:05:47 pm ---Your small minded [...]

--- End quote ---

See what I meant? ~
Back on topic:
what you've basically got to do to create a new gameplay from an existing one adding LTK to it is to carry code parts that are specific for LTK to the other class. So for CTF LTK that would be:

      self.SetDamageMultiplier( 1000 )

to def OnLoadGamePlay(self): and the method def OnPlayerConnect(self, player):

adding the method

   def OnUnloadGamePlay(self):
      self.SetDamageMultiplier( 1 )

and finally

   def SetDamageMultiplier(self, amount):
      for i in range(32):
         if not GEUtil.IsValidPlayerIndex(i):
            continue
         player = GEUtil.GetMPPlayer(i)
         player.SetDamageMultiplier(amount)

Should be working, isn't tested yet. Although I can say that creating a new class even with a new cfg going along with it and even changing the return name to "capturekeyltk" wouldn't work, yet modifying the CaptureKey.py and not renaming it worked (as it said Caputre The Key (MOD) for the gameplayname then). (I take it #GES_GP_CAPTUREKEY_NAME would be a token name so I tried putting a string right there) As I just browsed the wiki I found http://wiki.goldeneyesource.net/index.php/Custom_Python_Gameplay . I guess my last mistake was to leave "class CaptureKey(PYBaseGamePlay):" unchanged it should have been "class CaptureKeyLTK(PYBaseGamePlay):". I'll be posting a link to some of those gameplay files later.

kidx:
Thanks for the replay cant wait to test this the more work you do the more ill test on our ges server.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version