09-02-2008, 01:40 PM | #1 |
Pew pew ze beams
Join Date: Jan 2008
Gametype: Gathers Affiliations: pew pew Posts Rated Helpful 11 Times
|
Score via lua
Some time ago, squeek did this for ff_bounce lua --------------------
--points -------------------- function player_killed( player, damageinfo ) local attacker = damageinfo:GetAttacker() if IsPlayer( attacker ) then local team = attacker:GetTeam() team:AddScore( 1 ) end end The idea was to give one point per frag to the team and it works fine. My problem now is that i used that code also in my dm map ff_psyz and what happens is that the team score board and your own scoreboard does not match now.. because that lua dont take suicides in consideration so it doesn't take u one less point : ) plz reply the lua line that takes one frag per suicide. ty : ) |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|