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: 361
6 members and 355 guests
303, mankrip, Mr.Burns, Pandora, vibok
Most users ever online was 2,542, 06-04-2016 at 12:58 AM.
Go Back Home > Forum Search Forums

Thread: Regeneration
View Single Post
Unread 03-01-2017, 10:59 PM   #9 (permalink)
vegetous
Hell Knight
vegetous's Avatar
USER INFO »
Posts: 220
+/-  Reputation: vegetous is on a distinguished road
Join Date: Mar 2006
Currently: Offline
Contact:  Send a message via ICQ to vegetous
From Total Destruction II

Code:
// // RUNE 4 REGENERATION // if (runeof(self) == 4) { local float ma; // regenera health if (self.health < self.max_health) { self.health = self.health + 5; if (self.health > self.max_health) self.health = self.max_health; } // regenera armor if (self.armorvalue > 0) { if (self.armortype == 0.3) ma = 100; else if (self.armortype == 0.6) ma = 150; else if (self.armortype == 0.8) ma = 200; else if (self.armortype >= 0.9) ma = 250; else { self.armortype = 0.3; // bugfix... armadura verde inicial ma = 100; } if (self.armorvalue < ma) self.armorvalue = self.armorvalue + 5; if (self.armorvalue > ma) self.armorvalue = ma; } } }
Last available source code here:

https://mega.nz/#!IdZxAALI!7dvZJD-Oo...hcaoLAOFx2Tq0I
Reply With Quote
 

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


eXTReMe Tracker