Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-22-2008, 09:26 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Onwall-Check

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
setTimer(0.05);
}
function 
onTimeOut() {
  for (
temp.04i++) { 
    if (!
keydown(i)) 
      continue;
    
temp.nOnwall true
    for (
temp.08n++) { 
      for (
temp.= -11+= 16) { 
        
temp.onwall onwall(player.1.5 vecx(player.dir) * 17 16 abs(vecy(player.dir)) * kplayer.vecy(player.dir) * 17 16 abs(vecx(player.dir)) * k);  
        if (
temp.onwall) { 
          
temp.nOnwall false
          break; 
        } 
      } 
       if (
temp.nOnwall) { 
        
player.+= vecx(player.dir) * 1/16
        
player.+= vecy(player.dir) * 1/16
      } 
    } 
  }  
  
setTimer(0.05);  

Hello.. some people told me that this script is not logical and that I have to do this and that. But no one has ever told me WHY it is not logical or WHAT my mistake is.
I dont want you to rescript this or anything like that.
Please tell me what wrong is Thanks.

Last edited by Pelikano; 11-22-2008 at 10:26 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.