Site Navigation
QuakeOne News
» Latest News
» News Archives
» QuakeOne Movies

QuakeOne Help
» File Downloads
» Quake Help
» Quake Servers

QuakeOne Community
» Forums
» Chat *new*
» Poll Booth
» Memberlist
» Member Map

Site Info
» Community Rules
» Moderator List

» Buy Quake

Visit On Facebook!Visit QuakeOne
on Facebook

Log in
User Name:


Not a member yet?
Register Now!
Online Users: 355
4 members and 351 guests
Most users ever online was 2,542, 06-04-2016 at 12:58 AM.
Go Back Home > Forums > Quake Help > Servers and Coding > Regeneration Search Forums

LinkBack Thread Tools
Unread 03-05-2017, 05:10 PM   #11 (permalink)
Axe Man
bgf0302's Avatar
Posts: 16
+/-  Reputation: bgf0302 is on a distinguished road
Join Date: Feb 2017
Currently: Offline
Originally Posted by Mr.Burns View Post
If no QuakeC coder but I would probably experiment with something like the following:

local float increm, maxh; maxh = self.max_health increm=10 if ( < maxh) { = + increm; }
Obviously the above is untried, untested and probably wrong in a number of aspects but it might help

Kind regards
Untried, untested and probably wrong is the only fun way to code!!
Best FPS's of All-Time: Quake, Goldeneye, Half-Life
Reply With Quote
Unread 03-06-2017, 09:20 AM   #12 (permalink)
ijazz's Avatar
Posts: 170
+/-  Reputation: ijazz is on a distinguished road
Join Date: Oct 2016
Currently: Offline
Basically,you go to items.qc and you should find a void() powerup_touch
(or something like that) and find the powerups code and their self.netname.

change self.netname to anything

self.netname= "The Stupid Slow-Regen Thing!"

If you want to make the IT_INVULNERABILITY into a IT_REGEN
simply find all mentions of IT_INVULNERABILITY and change it to IT_REGEN.
Don't forget the defs.qc part,though.
Dude,lets party!
Bring some food and drink.I got Arcane Dimensions 2.666!?!
Reply With Quote
Unread 03-08-2017, 10:14 AM   #13 (permalink)
Code Monkey
R00k's Avatar
Posts: 5,773
+/-  Reputation: R00k has a spectacular aura aboutR00k has a spectacular aura aboutR00k has a spectacular aura about
Join Date: Nov 2005
Currently: Offline
Contact:  Send a message via ICQ to R00k Send a message via MSN to R00k
Originally Posted by dancar View Post
Thanks, looks really good, but I have a question, stupid probably. If I want to tell the game to change the inv. powerup into the regen. from Total Destruction, what I must do?
Wait, what are you *really* trying to do; just change the behavior of the Pent?

The code he posted above will also regen the armor value too. I didnt go that far because pent doesnt protect armor, and i was too lazy to type that much
Reply With Quote
Unread 03-14-2017, 03:16 PM   #14 (permalink)
Axe Man
Posts: 13
+/-  Reputation: dancar is on a distinguished road
Join Date: Mar 2012
Currently: Offline
Originally Posted by R00k View Post
Wait, what are you *really* trying to do; just change the behavior of the Pent?
The idea was that your health regenerates over a certain period of time. I don't know, 5 points x second.

I hate invulnerability in all games, no matter is for player or monsters, I can't stand it.
Reply With Quote
Unread 03-19-2017, 02:55 PM   #15 (permalink)
The man who sold the world
MadGypsy's Avatar
Posts: 5,144
+/-  Reputation: MadGypsy has a spectacular aura aboutMadGypsy has a spectacular aura aboutMadGypsy has a spectacular aura about
Join Date: Feb 2011
Currently: Offline

This is easy just write a couple/few scripts

Script 1: clone nearest health to player
Script2: an AI for cloned health boxes to find the player much like a bot would

From there it's simple, every X seconds the nearest health box will clone itself, navigate and "jump" into the player. I'm sure you will agree this is the most sensible way to go. You could even figure out how to put a noclip flag on all cloned health so it doesn't have to worry about walls. A slight upgrade and you could have bad health chasing the player around muah-ha-ha
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -6. The time now is 11:25 PM.

eXTReMe Tracker