Re: Proper way to deal damage without extensions
I wish the time based damages worked on tf2.
|
Re: Proper way to deal damage without extensions
Is there a way to use something like this to -cancel- damage being given?
|
Re: Proper way to deal damage without extensions
Quote:
|
Re: Proper way to deal damage without extensions
one thing worth mentioning, a while ago i tried something like this to "modify" damage. you cant use it inside a player_hurt event and try and deal damage with the weapon used by the attacker, since it fires the same event before handling the first one. i hope that makes sense :|. maybe you guys know a way around this?
|
Re: Proper way to deal damage without extensions
Quote:
|
Re: Proper way to deal damage without extensions
Quote:
erm, quick question though, that means i need a weapon name, which i can easily find... but, what if i want to make like a new weapon, then use this code to make it do damage? of course, i can make it use a weapon name thats already used, but then people will get confused as to which weapon actually killed/hurt/whatevered them... so, i guess my question(s) is/are: are there unused weapons? if so, how to find them? (tf2 this case) or can i somehow extend the list of possible choices? |
Re: Proper way to deal damage without extensions
Is there a way to change the origin or direction the damage is delt from? When I kill someone with this they always fly a certain direction, its never random (like its always north->south damage, making their body fly south)
|
Re: Proper way to deal damage without extensions
yea, just teleport the point_hurt to the attacker position.
|
Re: Proper way to deal damage without extensions
i've slightly altered it so i could use it on multiple people at the same time,
but it seems to not be working as in it doesn't damage people. it doesn't error out however as server console logthingy is clean can anyone spot where i've gone wrong? PHP Code:
TPHurt is probably not needed, since i don't think its possible to see point hurts ingame, but ahwell.. also a slight change in DealDamage aswell, as i teleport it to the victim, so it should damage it from the right direction(?) and i call the DealDamage with: PHP Code:
edit: also, slight sidequestion, can this also damage buildings? or destroyable entities? edit2: it is! possible to see point hurts...(i tried it without the TPHurt function) so yes, the point hurt is even teleported to the right position... it still doesn't do damage though... |
Re: Proper way to deal damage without extensions
You could do this:
Code:
stock MultiDealDamage(Handle:hVictims,victimCount,damage,attacker=0,dmg_type=DMG_GENERIC,String:weapon[]="")Code:
new Handle:hPack=CreateDataPack(); |
| All times are GMT -4. The time now is 18:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.