GoldenEye: Source Forums

  • November 22, 2024, 05:39:03 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: Disable body armor?  (Read 18438 times)

0 Members and 1 Guest are viewing this topic.

Deadly Porkchop

  • Agent
  • *
  • Posts: 8
  • Reputation Power: 0
  • Deadly Porkchop has no influence.
  • Offline Offline
Disable body armor?
« on: March 14, 2009, 01:08:34 am »

Me and some friends play as a group normally and we all agree that (just like in the old days) body armor gives people a huuuge advantage. Which is nice most of the time. But we've wondered if there's a way to disable body armor to make it more of a struggle to survive opposed to just running for new body armor when yours runs low. Is there any way to disable body armor from spawning, or is it a map thing?
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: Disable body armor?
« Reply #1 on: March 14, 2009, 01:40:10 am »

We have implemented a LUA callback that disables body armor. If you want me to write you a custom deathmatch script that disables the body armor let me know :)
Logged

Deadly Porkchop

  • Agent
  • *
  • Posts: 8
  • Reputation Power: 0
  • Deadly Porkchop has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #2 on: March 14, 2009, 11:08:05 pm »

That would be awesome, thanks. Let me know how you want to communicate about this.
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: Disable body armor?
« Reply #3 on: March 14, 2009, 11:45:49 pm »

Ok buddy, I made it for you (took all of 10 seconds): http://www.divshare.com/download/6810244-470

Just plop the two files in your scripts/gameplay folder and type ge_gameplay dmnoarmor and you are set!

If you are really ambitious you can pretty much do ANYTHING with our LUA commands: http://wiki.goldeneyesource.net/index.php/Category:Lua
and learning LUA isn't that hard, and could be rewarding for custom LAN games or simple modifications.

A nice trick, if you want people to START with body armor but not be able to collect it, is to add: PlayerSetArmor(player, GE_MAX_ARMOR); to the PostPlayerSpawn(...) callback.

ex.
Code: [Select]
function PostPlayerSpawn( player )
          PlayerSetArmor(player, GE_MAX_ARMOR);
end
« Last Edit: March 14, 2009, 11:52:30 pm by killermonkey »
Logged

Deadly Porkchop

  • Agent
  • *
  • Posts: 8
  • Reputation Power: 0
  • Deadly Porkchop has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #4 on: March 15, 2009, 12:07:53 am »

Thanks man.
Logged

VC

  • Valiant Varanidæ, Citrus Jockey
  • Retired Developer
  • GE:S Fanatic
  • *****
  • Posts: 2,843
  • Reputation Power: 16
  • VC is working their way up.VC is working their way up.VC is working their way up.
  • Offline Offline
Re: Disable body armor?
« Reply #5 on: March 15, 2009, 01:27:27 am »

"If you are really ambitious you can pretty much do ANYTHING with our LUA commands"

Although, if you are VC-ambitious, you hound KM until commands are added. : )
Logged
"As for VC's scripts they have not broken the game at all, in fact the game has never felt better." -- KM
"(03:12:41 PM) KM: I would call you a no life loser, but you are useful"
"(03:12:59 PM) VC: Go ahead.  I am, and I am."

Sp1nn3y

  • Local Graphic Artist
  • 00 Agent
  • ***
  • Posts: 570
  • Reputation Power: 0
  • Sp1nn3y has no influence.
  • Offline Offline
    • Sp1nn3ys Portfolio Website
Re: Disable body armor?
« Reply #6 on: March 15, 2009, 03:14:50 am »

"If you are really ambitious you can pretty much do ANYTHING with our LUA commands"

Although, if you are VC-ambitious, you hound KM until commands are added. : )

And thus is why we love you.
Logged

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #7 on: March 15, 2009, 03:42:31 am »

And the rage quit when none of it works :P
Logged

Doc.NO

  • 00 Agent
  • ***
  • Posts: 836
  • Reputation Power: 0
  • Doc.NO hides in shadows.
  • Offline Offline
Re: Disable body armor?
« Reply #8 on: March 15, 2009, 12:44:12 pm »

If you are really ambitious you can pretty much do ANYTHING with our LUA commands
Hmmm, waiting for sound CB as well as GUI :D
Logged

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #9 on: March 15, 2009, 02:35:32 pm »

Make a new thread, outline what you want and we will see if it is plausible
Logged

VC

  • Valiant Varanidæ, Citrus Jockey
  • Retired Developer
  • GE:S Fanatic
  • *****
  • Posts: 2,843
  • Reputation Power: 16
  • VC is working their way up.VC is working their way up.VC is working their way up.
  • Offline Offline
Re: Disable body armor?
« Reply #10 on: March 15, 2009, 05:03:29 pm »

I've needed a sound callback since I started L&LD.  KM should be all over that, now that the release of 3.1 is completed.
Logged
"As for VC's scripts they have not broken the game at all, in fact the game has never felt better." -- KM
"(03:12:41 PM) KM: I would call you a no life loser, but you are useful"
"(03:12:59 PM) VC: Go ahead.  I am, and I am."

drukqaddik

  • 00 Agent
  • ***
  • Posts: 256
  • Reputation Power: 6
  • drukqaddik has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #11 on: December 08, 2009, 06:39:17 am »

ok. im gonna post here because it has the info i need in it already. i have an idea for a gamemode that i want to code in lua. havin a little trouble.

stole a line from VC's code for l&ld
constBaronRegenerationAmount = GE_MAX_HEALTH * 0.25;

not sure how to get it to work on a kill tho. i want it to work when

function PlayerKilled( victim, killer )
   if ( victim == killer ) then
      AddToPlayerScore( killer, -1 );
   elseif ( IsTeamplay() and GetPlayerTeam(killer) == GetPlayerTeam(victim) ) then
      AddToPlayerScore( killer, -1 );
   else
      -- In DM we add TEAM and PLAYER scores on a kill
      -- We don't care if teamplay is enabled, if its not this will be ignored
      AddToTeamScore( GetPlayerTeam(killer), 1 );
      AddToPlayerScore( killer, 1 );
   end
end

killer gets GE_MAX_HEALTH * 0.10 added and then when health is full to add armor. but i didnt see any lua "checks" to see if char has anything. maybe i just didnt look hard enough and i know this mode will be slaughter but i think it will be fun.


also cant get that spawn with armor to work on dmnoarmor( Dr. No Armor)
Logged

Mark [lodle]

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,411
  • Reputation Power: 1
  • Mark [lodle] has no influence.
  • Offline Offline
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: Disable body armor?
« Reply #13 on: December 08, 2009, 01:38:51 pm »

Remember the sequencing.

PrePlayerSpawn(..) is called BEFORE the player is put into the world with health and armor and PostPlayerSpawn(...) is called afterwards. If you spawn them with modified health/armor you must do it in PostPlayerSpawn.

Same theory goes with PreRoundBegin and PostRoundBegin in terms of gameplay changes. Where PostRoundBegin is called AFTER the players are respawned and the world is reset.
Logged

drukqaddik

  • 00 Agent
  • ***
  • Posts: 256
  • Reputation Power: 6
  • drukqaddik has no influence.
  • Offline Offline
Re: Disable body armor?
« Reply #14 on: December 08, 2009, 09:31:11 pm »

ok. well, ill work on it later. anyone have dm in python layed out so i can edit some stuff for b4 to get it ready for the switch?
Logged
Pages: [1] 2   Go Up