01-15-2008, 07:52 PM | #1 |
Beta Tester
Join Date: Mar 2007
Location: Winnipeg Manitoba
Posts Rated Helpful 0 Times
|
How too..
How do you make it so You don't deal damage to yourself. From Grenades, rockets? Is this possible?
|
|
01-20-2008, 04:49 PM | #2 |
Custom mapper
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
Not sure, but it is possible to have an brush entity which gives you hp or whatever you like every so many seconds, lets say every second.
|
|
01-20-2008, 08:43 PM | #3 |
Nutcracker
|
Code:
function player_ondamage( player, damageInfo ) -- Entity that is attacking local attacker = damageInfo:GetAttacker() -- If no attacker do nothing if not attacker then return end -- If attacker is a player do nothing if not IsPlayer(attacker) then return end local playerAttacker = CastToPlayer(attacker) -- If player is damaging self do nothing if player:GetId() == playerAttacker:GetId() then return end end |
|
01-21-2008, 01:17 AM | #4 |
Now get quad working at the same time
|
|
|
01-28-2008, 11:46 AM | #5 |
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
how too make it so your grenades only affect yourself? (usefull for concmaps)
|
|
01-29-2008, 01:37 AM | #6 |
Fortress Forever Staff
|
ff_waterpolo.lua has some invincible & quad damage shit going on if you want to reference it.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|