JKIII Player shield count -1 reply

  • 1
  • 2

Please wait...

KirkNCC1701

I post to get attention

50 XP

30th March 2005

0 Uploads

73 Posts

0 Threads

#1 12 years ago

Does anyone know how to increase the total amount of the player's personal shield count to 200 instead of 100? By shields i mean the ones that protect you from energy damage but not fall damage. Thanks




TubbyTim

Mapper, skinner, n00b modeler

50 XP

31st May 2005

0 Uploads

578 Posts

0 Threads

#2 12 years ago

Look in the jampconfig.cfg (jaconfig.cfg for sp). I'm positive it's in there.




Bluestormtrooper

>You

50 XP

14th March 2005

0 Uploads

1,752 Posts

0 Threads

#3 12 years ago

Tim, if you dont know what our talking about don't post it. Did you even check what jampconfig.cfg IS? It simply holds your binds and settings. On to the question. No, its hard-coded into the game. You'd need a coder. I think it would be a simple thing to change, for a coder.




Bluestormtrooper

>You

50 XP

14th March 2005

0 Uploads

1,752 Posts

0 Threads

#4 12 years ago

Tim, if you dont know what your talking about dont post it. jampconfig.cfg simply holds your binds and settings. The sheild amounts are hard-coded into the game and can not be changed, exept by a coder.




TubbyTim

Mapper, skinner, n00b modeler

50 XP

31st May 2005

0 Uploads

578 Posts

0 Threads

#5 12 years ago

Yeah....that's funny because I just opened it up and found the line that says your shield maximum....not to be mean or anything but look a little harder. It's hard on my eyes with all those lines but I'm 99% positive it's in their...well that's not EXACTLY where it is...but you can change it with a g_ command...however, I forget which one. I'll look in the source code tommorow to see if it can permanatly be changed. What's making me mad is I JUST did this and at the current time believe it or not have a max shield of 999 (I DID NOT USE UNDYING MODE!!!). I did it with a console command. But I can't remember which one! GRRR!!!!!




TK 409er

Elementary, Mr. Watson.

50 XP

29th November 2003

0 Uploads

672 Posts

0 Threads

#6 12 years ago

Tim... it's not there.

you can set your health in SP, but not in MP.




TubbyTim

Mapper, skinner, n00b modeler

50 XP

31st May 2005

0 Uploads

578 Posts

0 Threads

#7 12 years ago

Really?!? I could have sworn I saw it in there...I guess I'm thinking about something else. Sorry bobaandy, and anyone else I offended. While if it is in the code. I will try to find it and change it for you...I know a bit about coding and have the source code. But, Idk WHERE it is...even though I found it before lol. Any help? -Tim




KirkNCC1701

I post to get attention

50 XP

30th March 2005

0 Uploads

73 Posts

0 Threads

#8 12 years ago

That would be great. Thx




TubbyTim

Mapper, skinner, n00b modeler

50 XP

31st May 2005

0 Uploads

578 Posts

0 Threads

#9 12 years ago

Well...first I have to figure out if it's a g command, d command, cg (I know it's not a cg command...just an example lol) , etc. I'm going to go looking through every source file for this. So can someone please point me in the right direction!




}HOK{Deathspike

MP Coding

50 XP

27th August 2005

0 Uploads

1,070 Posts

0 Threads

#10 12 years ago

Mr. TubbyTim The setting of shield/armor has 3 settings, which are the starting shield, the counting down of the shield when over the maximum, and the picking up value of the shield pickups. As followed, firstly, open g_client.c. Starting shield: // Start with a small amount of armor as well. [COLOR=black]Basicly, the line below this will set your armor on start. 0,25 * 200 would be 50, so let's do that too. (as in basejk, change is possible offcourse, with some logical thinking). The line will become: [COLOR=black]client->ps.stats[STAT_ARMOR] = 200 * 0.25; I've replaced the original max, of 100, with a plain simple value. Sure, you can put 50 instead too but it's just to get the correct idea like this :P. Save and close the file. Counting down: Open g_active.c and find the clienttimeractions, where every second the nice armor gets counted down when over the maximum. We're still using, 200, as the max, so find this comment and lines, and change them as followed. // count down armor when over max if ( client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH] ) { client->ps.stats[STAT_ARMOR]--; } Replacing: [COLOR=seagreen]// count down armor when over max[/COLOR] if ( client->ps.stats[STAT_ARMOR] > 200) { client->ps.stats[STAT_ARMOR]--; } Well, thats done too now, so the last, being able to pickup the item when over 100 armor (like you can't normally). Fixing the Pickups: Open g_items.c and find the following.. int Pickup_Armor( gentity_t *ent, gentity_t *other ) { other->client->ps.stats[STAT_ARMOR] += ent->item->quantity; if ( other->client->ps.stats[STAT_ARMOR] > other->client->ps.stats[STAT_MAX_HEALTH] * ent->item->giTag ) { other->client->ps.stats[STAT_ARMOR] = other->client->ps.stats[STAT_MAX_HEALTH] * ent->item->giTag; } return adjustRespawnTime(RESPAWN_ARMOR, ent->item->giType, ent->item->giTag); } Basicly, again, replace other->client->ps.stats[STAT_ARMOR] with 200, you're new maximum. Change change, not too hard, then the pickups should work as you wanted it too (or how it looked like to me anyway). Enjoy, if you need help post back ;) [/COLOR][/COLOR]

I guess thats a correct direction :)




  • 1
  • 2