target_credits 'static' spawnflag ...

Status: 
Pending

i have tried with this entity, yet never worked as i wanted it to
not rly sure if its added or not
but well >lol<

Spawnflags:
1 - Sets your credits to this count when used instead of adding to your credits

would be useful ... at least for me lol

0
Your rating: None
Crazy Assassin
Offline
Joined: 05/13/2010
Potentially dangerous...

Potentially dangerous...

You could do the same thing by simply removing credits in small chunks until they're down to 0, then giving them however much you want.

/place target_relay 0 targetname,killcredits,target,killcredits1
/place target_credits 0 targetname,killcredits1,target,killcredits,target2,killcredits2,count,-100000000
/place target_credits 0 targetname,killcredits2,target,killcredits1,target2,killcredits3,count,-10000000
/place target_credits 0 targetname,killcredits3,target,killcredits2,target2,killcredits4,count,-1000000
/place target_credits 0 targetname,killcredits4,target,killcredits3,target2,killcredits5,count,-100000
/place target_credits 0 targetname,killcredits5,target,killcredits4,target2,killcredits6,count,-10000
/place target_credits 0 targetname,killcredits6,target,killcredits5,target2,killcredits7,count,-1000
/place target_credits 0 targetname,killcredits7,target,killcredits6,target2,killcredits8,count,-100
/place target_credits 0 targetname,killcredits8,target,killcredits7,target2,killcredits9,count,-10
/place target_credits 0 targetname,killcredits9,target,killcredits8,target2,hasnocredits,count,-1

Should reduce you to 0 fairly quickly, will let you set the new credits as soon as they reach 0, and can handle any amount of credits, including admin-account levels.

Edit: In testing, the above will be near-instant. It also might lag a bit on the uneven values like 99150.

iMp
Offline
Joined: 05/15/2010
thats pretty much how i

thats pretty much how i overflow myself when i dont want some1 to talk to me
lol
just target_prints tho

EDIT: I edited it a bit and worked well without a lag spike
thanks lol , yet i think via spawnflags bitmask would be useful :d
EDIT2: oh well it only lags when u have excessive credits, and well thats not teh case on my concept, so i guess this does fine lol