Thread
:
Help with touch teammates
View Single Post
heliumdream
Senior Member
Join Date: Aug 2006
02-17-2022 , 07:34 Re: Help with touch teammates
#
2
you should be able to achieve this fairly easily.
inside the public frozen routine, inside the for loop that checks each player...
after you check if a given player is hit (if (dist <= freezeradius)...)
you would check if the owner of the entity (id) and the current user being checked by the for loop (i) are on the same team; and if they are just use continue, the code will stop there and the teammate will be unaffected by subzero.
im not sure off the top of my head what the statement looks like to check if players are on the same team...but certainly this is addressed many times over in code solutions in other heroes, just look up another hero and reference how to do it. i could grab it for you, but itd be better for you to learn yourself!
__________________
dbclan.ddns.net //
https://www.gametracker.com/server_info/184.88.214.58:27015/b/
[db]Clan Website
//
[db]Clan Steam Group
Thank you for playing.
heliumdream
View Public Profile
Send a private message to heliumdream
Visit heliumdream's homepage!
Find More Posts by heliumdream