Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2011, 06:26 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Stefan View Post
I've checked the shoot command because we want to possibly replace classic arrows with projectils on Classic iPhone. It seems we can already easily emulate them with the shoot command:
- if you want the projectile to pass walls: use speed=1, zero gravity
- if you want them to hit walls but move horizontally like classic arrows: use speed=0
You can also configure npcs to let them pass projectiles (but block players) with the npc.isblockingprojectiles = true/false variable, its best to set it on both client- and server-side (because it's not synced). There is was problem with inactive npcs ignoring it on server-side but it's fixed in the latest npcserver.
Something I don't like about default projectiles is that onActionProjectile in a player weapon seems to be inaccurate, the projectile only has to fly next to or infront of you rather than actually collide with your player.
It would be good if there was a way to assign a sensitivity to default projectiles.

When I was using default projectiles on Classic I was instead using onActionProjectile2(), with a subsequent box intersect adjusted according to the movement angle of the projectile.
This worked a lot better, but this is inefficient to be checking upon every projectile landing, and Clientside onActionProjectile2 wasn't consistent with Serverside onActionProjectile(temp.x, temp.y, etc);.

Ofcourse it's excessive to have fully scripted projectiles, but then when you have your block checking storing the collision object, that actually reduced subsequent script time.
Reply With Quote
Reply


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 01:29 PM.


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