[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Red Eclipse • View topic - [code experiment] Buff the player hp if he is holding sword

[code experiment] Buff the player hp if he is holding sword

User created maps and modifications, showcase your latest map, model, etc
Forum rules
The forum is now in read only mode, please see: https://redeclipse.net/discuss

[code experiment] Buff the player hp if he is holding sword

Postby Silux » 07 Jul 2014 21:30

I'm trying to get started to understand the code, and i decided to try to make the player to get +20 hp if it's wielding a sword, possibly with also other players getting that bonus.
I've read the code, but even if i'm familiar with c++ i'm puzzled about where the weapon switching occurs and how the player health is modified.
I've also seen often ICOMMAND(...), what does it means?

Seen that the game accepts commands from chat, i can make a command like "/kill player_name" or "/armageddon" to kill target or all?
Silux
 
Posts: 15
Joined: 07 Jul 2014 21:07

Re: [code experiment] Buff the player hp if he is holding sw

Postby FaTony » 08 Jul 2014 10:53

User avatar
FaTony
 
Posts: 391
Joined: 05 Feb 2014 13:14

Re: [code experiment] Buff the player hp if he is holding sw

Postby Silux » 08 Jul 2014 20:09

Silux
 
Posts: 15
Joined: 07 Jul 2014 21:07

Re: [code experiment] Buff the player hp if he is holding sw

Postby qreeves » 09 Jul 2014 01:05

Using the code is basically unsupported, and it is recommended you already know how to read and write C/C++. You may think your questions are simple, but you will need to ask a million more before you have any chance of accomplishing what you are setting out to do, and nobody really has the time and patience to do that for you. I recommend gamedev.net for introductory game development, and maybe even learning QuakeC modding using darkplaces as this process is easy to learn, especially for beginners.
Quinton Reeves | Lead Developer, Red Eclipse
|
Contribute to Project Costs via or
User avatar
qreeves
Site Admin
 
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Re: [code experiment] Buff the player hp if he is holding sw

Postby FaTony » 09 Jul 2014 16:30

User avatar
FaTony
 
Posts: 391
Joined: 05 Feb 2014 13:14

Re: [code experiment] Buff the player hp if he is holding sw

Postby Silux » 09 Jul 2014 20:10

Silux
 
Posts: 15
Joined: 07 Jul 2014 21:07

Re: [code experiment] Buff the player hp if he is holding sw

Postby qreeves » 10 Jul 2014 01:07

You can't change health like that on the client side. It needs to be done by the server part and then pushed to the clients.
Quinton Reeves | Lead Developer, Red Eclipse
|
Contribute to Project Costs via or
User avatar
qreeves
Site Admin
 
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Re: [code experiment] Buff the player hp if he is holding sw

Postby FaTony » 10 Jul 2014 18:30

Also note that uncontrolled modding may ban your server from master server: http://redeclipse.net/wiki/Multiplayer_Guidelines
User avatar
FaTony
 
Posts: 391
Joined: 05 Feb 2014 13:14

Re: [code experiment] Buff the player hp if he is holding sw

Postby Silux » 11 Jul 2014 20:09

@qreeves ok that explains why it seems not to be considered when taking damage, but it's displayed in the graphic interface.
The server holds all variables editable from the variable menu available in-game?

@FaTony i know it wouldn't be fair a modded client. I'm sticking with a fresh client for multiplayer:)
Silux
 
Posts: 15
Joined: 07 Jul 2014 21:07

Re: [code experiment] Buff the player hp if he is holding sw

Postby qreeves » 12 Jul 2014 00:31

Best I can suggest is to look at N_REGEN network messages, they are used for health regeneration and and control (eg. Vampire). You don't even need a modded client to achieve this, just a modded server. In general, I do not mind modded servers so long as they are clearly marked, give an explanation of what is changed, and honours the master server policy.
Quinton Reeves | Lead Developer, Red Eclipse
|
Contribute to Project Costs via or
User avatar
qreeves
Site Admin
 
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Re: [code experiment] Buff the player hp if he is holding sw

Postby Silux » 12 Jul 2014 19:54

Silux
 
Posts: 15
Joined: 07 Jul 2014 21:07

Re: [code experiment] Buff the player hp if he is holding sw

Postby SniperGoth » 12 Jul 2014 20:30

Ex Iron fist level designer/ Ex Revelade Revolution level designer, 3d/2d artist, and still trying to figure out sound design...
User avatar
SniperGoth
 
Posts: 473
Joined: 03 Feb 2014 13:08


Return to Maps and Mods

cron