View Issue Details

IDProjectCategoryView StatusLast Update
0001642Multi Theft Auto : San AndreasScriptingpublic2006-11-16 05:35
Reportererorr404Assigned ToJax 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0001642: setTeamFriendlyFire ( team, bool ) doesn't work
Description

Here's the script (teamtest.map/teamtest2.lua on the ftp):

Additional Information

red = false
blue = false

addEventHandler ( "onMapLoad", getRootElement (), "mapLoad_teamtest" )
function mapLoad_teamtest ( name )
outputChatBox ( "Commands: join 'red/blue'" )
red = createTeam ( "red", 255, 0, 0 )
if ( setTeamFriendlyFire ( red, false ) ) then outputChatBox ( "FF for team red set to false" ) end
blue = createTeam ( "blue", 0, 0, 255 )
if ( setTeamFriendlyFire ( blue, true ) ) then outputChatBox ( "FF for team blue set to true" ) end
end

addCommandHandler ( "join", "consoleJoin" )
function consoleJoin ( player, commandName, team )
if ( player ) then
if ( team == "red" ) then
addPlayerToTeam ( player, red )
if ( getPlayerTeam ( player ) == red ) then
outputChatBox ( getClientName ( player ) .. " added to team red" )
else
outputChatBox ( "Failed to add " .. getClientName ( player ) .. " to team red" )
end
elseif ( team == "blue" ) then
addPlayerToTeam ( player, blue )
if ( getPlayerTeam ( player ) == blue ) then
outputChatBox ( getClientName ( player ) .. " added to team blue" )
else
outputChatBox ( "Failed to add " .. getClientName ( player ) .. " to team blue" )
end
end
end
end

TagsNo tags attached.

Activities

Jax

2006-10-30 01:52

administrator   ~~0003612

It wasn't added until the last nightly

erorr404

2006-10-30 02:46

developer   ~~0003613

I tested it in build 20061030.

erorr404

2006-10-31 20:04

developer   ~~0003614

Last edited: 2006-10-31 20:07

It doesn't work. Here's exactly how I tested it:
I loaded the above script, had someone join the server, they spawned, we both joined the red team (which has ff set to false), and I tried shooting him with AK's and M4's. We also tried joining team blue (which has FF set to true) in case there was a mix up. In both cases we could damage eachother.

Btw this is in build 1101

erorr404

2006-11-02 18:45

developer   ~~0003619

Still broken.

Issue History

Date Modified Username Field Change