lostmotel told me it would be useful for some arena servers when players are disabled from spading enemies through (one-block-thick) walls, so upon some testing i found out that it was not hard at all to create such a script preventing it
admins can toggle the ability on and off via the command /togglewallspading (yeah i know my choice of words is unique)
1.4.2014: uh seems like something was off before, should work fine now i hope
6.4: ok once again
[script] omgnospadingthroughwallsanymore
-
Scripter
- Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
Attachments
omgnospadingthroughwallsanymore.py
this script is cursed i tell you, CURSED!
(1.19 KiB) Downloaded 681 times
this script is cursed i tell you, CURSED!
(1.19 KiB) Downloaded 681 times
Last edited by Dr.Morphman on Sun Apr 06, 2014 12:40 am, edited 3 times in total.
Hhmmm... your code is a bit messy, but OMFG WHY HAVENT ANYONE ELSE THOUGHT OF THIS YET?!?!?!?
If I were even more cheeky, I would say that you've beat thepolm3. Scripter badge nominated.
If I were even more cheeky, I would say that you've beat thepolm3. Scripter badge nominated.
It's a Christmas miracle!
VladVP wrote:Hhmmm... your code is a bit messy, but OMFG WHY HAVENT ANYONE ELSE THOUGHT OF THIS YET?!?!?!?Aloha needs dis 1 dood
If I were even more cheeky, I would say that you've beat thepolm3. Scripter badge nominated.
I was never made aware of this bug :)
Nice job sorting it out
Nice job sorting it out
*cries* ;) you have no idea how much this is amazing! If aloha puts this on their servers life will be amazing!
But I like spading through the wall and making people say Wall hax.
BTW, Alias work like this
BTW, Alias work like this
Code: Select all
The order must be that, also you don't need name because "yourfunction" will act as a name (unless you have named your function something which is not acceptable as a command) So your command will be
@alias('yf')
@admin
def yourfunction(connection):
#blah blah
add(yourfunction)
Code: Select all
from commands import add, admin, alias
@alias('tws')
@admin
def togglewallspading(self):
if self.protocol.is_fluffy == True:
self.protocol.is_fluffy = False
self.protocol.send_chat(message_on)
return message_on
else:
self.protocol.is_fluffy = True
self.protocol.send_chat(message_off)
return message_off
add(togglewallspading)
-
bloxxer25052LP
Deuce - Posts: 12
- Joined: Sun Oct 13, 2013 12:46 pm
Tested. Unfortunately, this script doesn't prevent spade damage through walls.
izzy wrote:Tested. Unfortunately, this script doesn't prevent spade damage through walls.Oh, well that sucks. Someone should make a script like that then.
-
Scripter
- Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
okay seems like something was realy off in this script (nice how long it took for anyone to notice haha),
i rewrote it and tested it thouroughly now (thx kiwi for helping out)
it should work perfectly fine now, just redownload the script
i rewrote it and tested it thouroughly now (thx kiwi for helping out)
it should work perfectly fine now, just redownload the script
Now it prevents spading through walls, but it also prevents all bullet and nade damage in open areas.
Nice morph! hope the bugs in your script are fixed soon!
IGN:|SPQR|MrFritz/MistaFreetz
-
Scripter
- Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
okay now that was embarassing, anyways it should be FIXED NOW!
(rage incoming if it still contains mistakes)
(rage incoming if it still contains mistakes)
Who is online
Users browsing this forum: No registered users and 12 guests