View Single Post
Re: Sensing grenades in-flight
Old
  (#7)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Sensing grenades in-flight - 15-04-2004

strcmp returns zero if the strings are equal. so
Code:
if (strcmp (model_name, "models/w_hegrenade.mdl") == 0)
	return 1; // He grenade
is right. ( use ! instead of == 0 and you save at least 2 chars )



Last edited by @$3.1415rin; 15-04-2004 at 15:07..
  
Reply With Quote