Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-28-2014, 09:57 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
noplayerkilling()

Would anyone know if there's some sort of workaround to make players 'dontblock()' or 'block()'. On a gmap I can use noplayerkilling() via clientside, but that really defeats the purpose when they walk outside of my no pk zone.

Would be super if I could do something along the lines of:

noplayerkilling(true);
noplayerkilling(false);
__________________
Reply With Quote
  #2  
Old 07-28-2014, 10:02 PM
MonkeyBob MonkeyBob is offline
Cool Guy 5000
MonkeyBob's Avatar
Join Date: Jul 2011
Posts: 99
MonkeyBob has a spectacular aura about
You wish.
Reply With Quote
  #3  
Old 07-28-2014, 10:31 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 353
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
hello!

in v6 there is now the clientside variable player.isblocking (boolean). however it is only effective on your own client, so you would have to loop through other player objects clientside and set isblocking to false

you could also possibly try writing player.gmap.nopkzone = true; on client now that the variable isnt read-only anymore, but i dont know if it will work

with that said, the best thing to do if youre willing to use up more cpu is script an entirely custom movement system
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #4  
Old 07-28-2014, 11:58 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Way better, thank you Jakov. That did exactly as intended.
__________________
Reply With Quote
  #5  
Old 07-28-2014, 11:59 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 353
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
youre welcome!

what solution did you go with?
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #6  
Old 07-29-2014, 01:17 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
I went with looping through allplayers via clientside checking their location on the gmap. If they're within a certain areas (no pk zones), they won't block. In Era's case though, I did a little extra step and did checks to see if a player was set to pk mode which would cause them to block even in a no pk zone. Very useful btw.
__________________
Reply With Quote
  #7  
Old 08-21-2014, 03:21 AM
Restraint Restraint is offline
NaS
Join Date: Jan 2014
Posts: 21
Restraint will become famous soon enough
Quote:
Originally Posted by Tim_Rocks View Post
I went with looping through allplayers via clientside checking their location on the gmap. If they're within a certain areas (no pk zones), they won't block. In Era's case though, I did a little extra step and did checks to see if a player was set to pk mode which would cause them to block even in a no pk zone. Very useful btw.
You could do the same by simply looping through players on the clientside, instead of allplayers.

And, just a heads-up, you CAN alter player killing back and forth.

this.level.nopkzone = true/false;
Reply With Quote
  #8  
Old 08-21-2014, 11:08 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Yeah, I know we do that events a lot. I used allplayers since I already have the loop active with a map system. No need to make a whole new weapon for a one liner.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:34 AM.


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