Invincible

10/27/2009 04:49 mynameisqwerty#1
can some 1 help me i wana make a Invincible command for my server
im using PowerSource Co i know how to maake other easy commands but im stumped with this so can any 1 help me

i know its a old buggy source yeah yeah i know still can any 1 help me please
10/27/2009 05:10 CurseOfExcalibur#2
Quote:
Originally Posted by mynameisqwerty View Post
can some 1 help me i wana make a Invincible command for my server
im using PowerSource Co i know how to maake other easy commands but im stumped with this so can any 1 help me

i know its a old buggy source yeah yeah i know still can any 1 help me please
Why don't you just raise the physical def and magical def on the char?
Pretty simple if you think about it..
10/27/2009 06:18 mynameisqwerty#3
yeah its simple if you know what your doing unlike me =/
10/28/2009 01:35 CurseOfExcalibur#4
Um okay, here is something EXTREMELY simple, add a bool and name it something like invincible or godly ( just anything you like ) then add it to the character class, after that @ Attack calculations class (<- don't remember what was it called, sorry =x ) i guess there is an "if" checker that checks if you're dead or alive; just add && Character.Invincible ( or whatever you named this bool ), then make a command ( i guess in chat class? ) and add something like this:
if (Msg[0] == "@Invincible")
{
Character.Invincible = true;
}
PS. Make sure that the bool is set to false if you're using the same sentence and command.
10/28/2009 01:42 Fish*#5
Nice made Calibur :D
10/28/2009 01:50 pro4never#6
Yupp that type of command will work in any type of source, simply need a bool for on/off, then under any form of attack calculation (different sources sometimes have different areas for them) simply do something to check if it's active damage = 1, or 0 and then return. That way you completely negate all damage calculations and simply set it to a specific value (0) and end the calcs.
10/28/2009 19:06 mynameisqwerty#7
im using powersource and i can find the attack part =/