[script] omgnospadingthroughwallsanymore

18 posts Page 1 of 2
Dr.Morphman
Scripter
Scripter
Posts: 73
Joined: Sun Feb 24, 2013 9:55 am


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
Attachments
omgnospadingthroughwallsanymore.py
this script is cursed i tell you, CURSED!
(1.19 KiB) Downloaded 444 times
Last edited by Dr.Morphman on Sun Apr 06, 2014 12:40 am, edited 3 times in total.
VladVP
Post Demon
Post Demon
Posts: 1425
Joined: Fri Dec 14, 2012 10:48 pm


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.
Kiwi
League Participant
League Participant
Posts: 752
Joined: Wed Apr 10, 2013 12:53 pm


VladVP wrote:
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.
Aloha needs dis 1 dood
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


I was never made aware of this bug :)
Nice job sorting it out
GamingFTW
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 83
Joined: Thu Nov 01, 2012 12:18 pm


*cries* ;) you have no idea how much this is amazing! If aloha puts this on their servers life will be amazing!
Kuma
Scripter
Scripter
Posts: 758
Joined: Fri Mar 22, 2013 10:05 am


But I like spading through the wall and making people say Wall hax. Blue_Normal

BTW, Alias work like this
Code: Select all
@alias('yf')
@admin
def yourfunction(connection):
    #blah blah
add(yourfunction)
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
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


Can i see screenshots?
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 473
Joined: Tue Oct 09, 2012 8:16 pm


Tested. Unfortunately, this script doesn't prevent spade damage through walls.
scrawl
Veterans
Veterans
Posts: 974
Joined: Mon Dec 16, 2013 12:09 pm


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.
Dr.Morphman
Scripter
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
Kiwi
League Participant
League Participant
Posts: 752
Joined: Wed Apr 10, 2013 12:53 pm


there a video in 1440p so you can see that it actually works: http://youtu.be/9X0QIwWdjS0

gj
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 473
Joined: Tue Oct 09, 2012 8:16 pm


Now it prevents spading through walls, but it also prevents all bullet and nade damage in open areas. Blue_NotHappy
MrFritz
League Operator
League Operator
Posts: 484
Joined: Sat Nov 10, 2012 1:57 am


Nice morph! hope the bugs in your script are fixed soon!
Dr.Morphman
Scripter
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)
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 473
Joined: Tue Oct 09, 2012 8:16 pm


Works like a charm! Green_Wink1

Script validated/approved.
18 posts Page 1 of 2
Return to “Bug Fixes”

Who is online

Users browsing this forum: No registered users and 1 guest