Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Carlton
Quote:
Originally Posted by FreddoX [BINMAN
]
Nice work, but it can be done easily in 2 functions, so it can be done better as more of a snippet, simply with OnPlayerKeyStateChange and then make a second function to initialize the teargas (though it's not that necessary). And it can be done using GetPlayerWeapon, instead of this alternative method you use to give teargas.
|
I could of used GetPlayerWeapon, I didn't really like giving the players teargas as a weapon, because the amount of effort they throw it can effect the direction and mess up the smoke objects coordinates. I tried my best to make it a different way. Maybe using GetPlayerWeapon, and using GetPlayerWeaponData, can determine the amount of teargas a person has, I will try that out. Thanks for the nice work comment.
|
No problem, it's excellent for a first release. If you do change it, you should probably change it to a filterscript though.