Thread: if hit by
View Single Post
  #13  
Old 09-11-2008, 08:12 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by GULTHEX View Post
so i do this ?
PHP Code:
//#CLIENTSIDE
if (weaponfired) {
  
replaceani idle,dg_mp5a2-fire;
  
replaceani walk,dg_mp5a2-walk;
  
setani dg_mp5a2-walk,;
  
freezeplayer .1;
  
setani dg_mp5a2-fire,;
  
this.angle=getangle(vecx(playerdir),vecy(playerdir));
  
this.x=playerx+vecx(playerdir)*2;
  
this.y=(playery-.5)+vecy(playerdir)*2.5;
 
shoot this.x,this.y,playerz,this.angle+random(this.maxangle*-1,this.maxangle),
    
1,0,dg_bullet,1;
}
if (
keypressed && strequals(#p(1),s)) {
replaceani idle,idle;
replaceani walk,walk;
onActionProjectile
setani hurt
,;} 
Try explaining what you're doing for one.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote