Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-11-2009, 11:05 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Projectiles should ignore fences

Projectiles that are shot like classic arrows(flat and horizontal) should also ignore fences like default arrows.
Reply With Quote
  #2  
Old 12-12-2009, 02:02 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It's possible to script by designating a certain tile type as a wall using a custom movement system (since then projectiles will still think it's not a wall), though I guess that's not a lot of help.
__________________
Reply With Quote
  #3  
Old 12-12-2009, 11:14 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
It's possible to script by designating a certain tile type as a wall using a custom movement system (since then projectiles will still think it's not a wall)
__________________
Reply With Quote
  #4  
Old 12-12-2009, 12:04 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
This is a crazy work-around, and I'm not sure if there is a better way, but you could probably do something like this:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
onTimeout();
}

function 
onTimeout() {
  for (
temp.pprojectiles) {
    if (
tiles[temp.p.vecx(temp.p.params[0]),
        
temp.p.vecy(temp.p.params[0])] == 3271) {
        
tiles[temp.p.vecx(temp.p.params[0]),
        
temp.p.vecy(temp.p.params[0])] = 0;
        
updateboard(temp.p.xtemp.p.y22);
    }
    
    if (
tiles[temp.p.vecx((temp.p.params[0] + 2) [PERCENT4),
        
temp.p.vecy((temp.p.params[0] + 2) [PERCENT4)] == 0) {
        
tiles[temp.p.vecx((temp.p.params[0] + 2) [PERCENT4),
        
temp.p.vecy((temp.p.params[0] + 2) [PERCENT4)] = 3271;
        
updateboard(temp.p.xtemp.p.y22);
    }
  }
  
setTimer(0.05);

But it's probably pretty intensive, could probably be optimized.
All that's doing is finding projectiles in the level and if they are about to hit tile "3271", replace it with tile "0", and then if they just passed tile "0" replace it with "3271".

If you wanted to use this technique, of course, you'd have to apply a small flag to the projectile somehow or something to make sure you're not replacing a correctly placed tile 0 with 3271 on accident.

Note: 3271 is just a random tile. This also requires that your shootparams[0] are set to the direction the player was facing when he fired the projectile.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”

Last edited by Tigairius; 12-12-2009 at 12:16 PM..
Reply With Quote
  #5  
Old 12-15-2009, 07:34 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Why don't you move the projectile up a bit on the Z axis instead of removing the fence? :0

Assuming, of course, that you can move projectiles clientside, which I see no reason why not, considering they are entirely clientside.
Reply With Quote
  #6  
Old 12-15-2009, 07:54 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by 12171217 View Post
Why don't you move the projectile up a bit on the Z axis instead of removing the fence? :0

Assuming, of course, that you can move projectiles clientside, which I see no reason why not, considering they are entirely clientside.
Because then they wouldn't crash into any other walls. I suggest doing what Chris said until there's another solution. I did it on Era with tiletypes 9 and 10 if I recall correctly. Some lava stuff. More than enough tiles for the shoot-through-tables-idea I had. I can deliver some functions to assist you if you wish.
__________________
Reply With Quote
  #7  
Old 12-16-2009, 12:32 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
I meant move the projectiles up on the Z axis in a timeout loop when they're about to hit a wall tile-type that's excluded, then move it back down when it passes.

Alternatively, one could start the projectile with a Z value, then snap it to the floor when it hits a wall, unless that wall tile-type is excluded.

This is all assuming that you can even interact with projectiles after they're spawned. Otherwise, you could write your own projectile handler.
Reply With Quote
  #8  
Old 12-16-2009, 12:38 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I don't think you can really edit projectile vars.
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 08:36 PM.


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