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 07-21-2013, 08:20 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Dead Players

When a player dies their body acts as a 'block'

Is there any way to disable a dead person from blocking? We use onwall / onwall2 to detect (custom movement)

I know there is a way around this using 'noplayerkilling()' but there is no toggle to 'enableplayerkilling()'

thanks
__________________
Reply With Quote
  #2  
Old 07-21-2013, 08:48 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by xAndrewx View Post
When a player dies their body acts as a 'block'

Is there any way to disable a dead person from blocking? We use onwall / onwall2 to detect (custom movement)

I know there is a way around this using 'noplayerkilling()' but there is no toggle to 'enableplayerkilling()'

thanks
If you're using a custom movement, couldn't you run a check to see if the player's ani is "dead" (or whatever your death ani is :3) so they aren't taken into account when you're running your wall check?
Reply With Quote
  #3  
Old 07-21-2013, 11:40 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
no because onwall and onwall2 returns true / false... lol
__________________
Reply With Quote
  #4  
Old 07-21-2013, 12:30 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by xAndrewx View Post
no because onwall and onwall2 returns true / false... lol
I don't understand. If you're trying to stop a dead body from blocking, just run a check to see if a player's in the position you're checking and if there's a dead player there just skip the onwall check.
Reply With Quote
  #5  
Old 07-21-2013, 01:01 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Emera View Post
I don't understand. If you're trying to stop a dead body from blocking, just run a check to see if a player's in the position you're checking and if there's a dead player there just skip the onwall check.
then players would be able to glitch through blocking npcs/walls
__________________
MEEP!
Reply With Quote
  #6  
Old 07-21-2013, 03:55 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
PHP Code:
//#CLIENTSIDE
function onPlayerChanges(pl) {
  if (
pl.ani.name == "dead"pl.isblocking false;

Reply With Quote
  #7  
Old 07-21-2013, 04:20 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Does that work @ Dusty?


Script help for 'isblocking':
TServerNPC.isblocking - boolean
TServerNPC.isblockingprojectiles - boolean
__________________
Reply With Quote
  #8  
Old 07-21-2013, 05:20 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
Quote:
Originally Posted by xAndrewx View Post
Does that work @ Dusty?


Script help for 'isblocking':
TServerNPC.isblocking - boolean
TServerNPC.isblockingprojectiles - boolean
It should, it's one of those undocumented v6 things:
http://forums.graalonline.com/forums...postcount=1635

But it's clientside only, so you basically either have to loop through all the players clientside and change their blocking status, or use a function(like onPlayerChanges).

However onPlayerChanges() is only called when the player's head changes, or they enter the screen buffer. I'm trying to get Stefan to add onPlayerTouchsPlayer(playerobj) so there's a more reliable way of updating a player's blocking status.
Reply With Quote
  #9  
Old 07-22-2013, 05:17 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Interesting, thanks.

I assume since it's boolean you can toggle
__________________
Reply With Quote
  #10  
Old 07-22-2013, 09:35 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It's documented in my version (start with -listscriptfuntions)
TServerPlayer.isblocking - makes the player blocking or non-blocking on the current client only

There can also be other ways to handle this:
- on server-side set the player classic health to zero while the player is dead (player.hp/hearts)
- on client-side you can use TServerLevel.isnopkzone = true/false, you can set this before using onwall and unsetting afterwards
Reply With Quote
  #11  
Old 07-23-2013, 05:23 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Quote:
Originally Posted by Stefan View Post
It's documented in my version (start with -listscriptfuntions)
TServerPlayer.isblocking - makes the player blocking or non-blocking on the current client only

There can also be other ways to handle this:
- on server-side set the player classic health to zero while the player is dead (player.hp/hearts)
- on client-side you can use TServerLevel.isnopkzone = true/false, you can set this before using onwall and unsetting afterwards
Being documented in your version doesn't make it documented Just means you're the only one who actually has that particular documentation to access. Would be great if others could access this sometime *nudge nudge*
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #12  
Old 07-23-2013, 06:34 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Stefan View Post
It's documented in my version (start with -listscriptfuntions)
TServerPlayer.isblocking - makes the player blocking or non-blocking on the current client only

There can also be other ways to handle this:
- on server-side set the player classic health to zero while the player is dead (player.hp/hearts)
- on client-side you can use TServerLevel.isnopkzone = true/false, you can set this before using onwall and unsetting afterwards
Yay!! I'll try it later
__________________
Reply With Quote
  #13  
Old 07-23-2013, 06:28 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Hmmm when I set the players HP to 0 it made them walk through, however on Era iOS it still showed the 'End' sign and it kinda crashed my client
__________________
Reply With Quote
  #14  
Old 08-31-2013, 12:59 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Any ideas
__________________
Reply With Quote
  #15  
Old 08-31-2013, 03:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Don't use the hearts system.
__________________
Quote:
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 03:57 PM.


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