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 QuakeOne.com On Facebook!Visit QuakeOne
on Facebook

Log in
User Name:

Password:

Not a member yet?
Register Now!
Online Users: 362
2 members and 360 guests
303, UNR3AL S0LDI3R
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

Reply
LinkBack Thread Tools
Unread 03-05-2017, 06:10 PM   #11 (permalink)
Axe Man
bgf0302's Avatar
USER INFO »
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:

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

Kind regards
Monty
Untried, untested and probably wrong is the only fun way to code!!
__________________
Best FPS's of All-Time: Quake, Goldeneye, Half-Life
https://www.LFGdating.com
Reply With Quote
Unread 03-06-2017, 10:20 AM   #12 (permalink)
Defender
ijazz's Avatar
USER INFO »
Posts: 164
+/-  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
example

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, 11:14 AM   #13 (permalink)
Code Monkey
R00k's Avatar
USER INFO »
Posts: 5,777
+/-  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
USER INFO »
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
USER INFO »
Posts: 5,061
+/-  Reputation: MadGypsy has a spectacular aura aboutMadGypsy has a spectacular aura aboutMadGypsy has a spectacular aura about
Join Date: Feb 2011
Currently: Offline
@dancar

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
__________________
X_Michael
Reply With Quote
Reply

Bookmarks


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 10:37 PM.


eXTReMe Tracker