Scripting ideas

223 posts Page 13 of 15 First unread post
ZEB 99
Post Demon
Post Demon
Posts: 2028
Joined: Fri Feb 22, 2013 10:03 pm


^i hover sometimes at 300 png so thats bad for me. I would get kicked from every server i join
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


This should work, but I haven't tested it (how would you!)
Attachments
kickhighping.py
(384 Bytes) Downloaded 259 times
TB_
Post Demon
Post Demon
Posts: 998
Joined: Tue Nov 20, 2012 6:59 pm


Hopefully there is a counter for how long it is over 300ms before you get kicked. Would suck ot get kicked because of a lag-spike.
Defero200
Deuce
Posts: 8
Joined: Tue Apr 16, 2013 1:07 pm


Could you make a script that allows admins to add a specified score to some players?
Sometimes I play and have a good score but then I get disconnected cause my client crashes and that sucks.
Would be pretty cool if its possible and you make it Green_BigSmile
If you do it you get a cookie from me here you can see it: Green_Cookie
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


I think I can do one better; I won't tell you unless I complete it :)
Awzi.
Deuce
Posts: 7
Joined: Thu Aug 01, 2013 12:09 am


Hey man I really like your work :), anyways I was wondering if you could complete this request?
Code: Select all
Title - Helicopter Streak
Description - Fly around in the air with grenades + ammo, you also have 150 health with 10 grenades and you'll be in the air for around 30 seconds to a minute (its all randomly generated)
I tried doing this myself but I don't know much Python..and my knowledge is low lol. I even tried to make it out of this simple streak.py
Code: Select all
"""
Title - Helicopter Streak
Description - Fly around in the air with grenades + ammo,
you also have 150 health with 10 grenades and you'll
be in the air for 5-8 seconds max.

Base Used - streak.py

for those who don't want to bother with the (currently broken) airstrike script
but still want the refills it gives and an easy framework for adding more
complicated stuff

maintainer: topo
editor: Awzi.
"""

from math import ceil, sin, cos
from random import randrange, uniform, vonmisesvariate
from twisted.internet.reactor import callLater, seconds
from pyspades.server import orientation_data, grenade_packet, set_hp, weapon_reload
from pyspades.common import coordinates, to_coordinates, Vertex3
from pyspades.collision import distance_3d_vector
from pyspades.world import Grenade
from pyspades.constants import *
from commands import alias, add

STREAK_REQUIREMENT = 16

HEAL_ON_GRANT = True # heals when unlocking the helicopter
AMMO_ON_GRANT = True # refills when unlocking the helicopter

HEAL_ON_LAUNCH = True # heals when calling in the helicopter
AMMO_ON_LAUNCH = True # refills when calling in the helicopter

S_READY = "Helicopter support ready! SCOPE and HOLD <V> (sneak) to launch"
S_FAILED = 'You need to aim your helicopter somewhere, not at the sky!'
S_NO_STREAK = 'Every {streak} kills in a row you unlock an ' \
    'airstrike. {remaining} kills to go!'
S_COOLDOWN = '{seconds} seconds before your team can launch another helicopter'
S_ALLIED = 'Ally {player} called in a helicopter on location {coords}'
S_ENEMY = '[WARNING] Enemy air support heading to {coords}!'
S_MOVED = 'You must hold still while targeting the helicopter'
S_STAND = 'You must be standing up to target the helicopter'

TEAM_COOLDOWN = 0 # seconds until another helicopter can be called
ZOOMV_TIME = 0 # seconds holding V until helicopter is called
ZOOMV_RAY_LENGTH = 0
ARRIVAL_DELAY = 0 # seconds from helicopter notice to arrival

def apply_script(protocol, connection, config):
    class StreakConnection(connection):
        last_streak = None
        
        def add_score(self, score):
            connection.add_score(self, score)
            if (self.streak % STREAK_REQUIREMENT == 0
            and self.streak != self.last_streak):
                self.refill()
                self.last_streak = self.streak

        def on_kill(self, killer, type, grenade):
            self.last_streak = None
            connection.on_kill(self, killer, type, grenade)

    return protocol, StreakConnection
But I don't know what to do lol, I'd probably get around 100+ errors. Blue_NotHappy
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


for python I recommend http://www.codecademy.com/tracks/python
I'll have a look for you :)
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


a grenade only script would be nice
Awzi.
Deuce
Posts: 7
Joined: Thu Aug 01, 2013 12:09 am


thepolm3 wrote:
for python I recommend http://www.codecademy.com/tracks/python
I'll have a look for you :)
Alright thanks man, and yeah I've looked into Codecademy but eh Blue_Sleeping
zovc
Deuced Up
Posts: 133
Joined: Wed Jan 02, 2013 1:36 am


danhezee could you mention that votekick script on the newsletter? lots of people read it and I think it might be good all around if aloha saw that and implanted it. Hmmm I hope someone makes a build 'n' kill server.
Hypersonic1238
Winter Celebration 2013
Winter Celebration 2013
Posts: 24
Joined: Mon Aug 26, 2013 12:38 am


the hunger games script:

guns are nerfed massively, spade is weakened to 25 dmg (nerfed how much? headshots are lessthen 20dmg)

we all spawn in random areas of a map, we cant heal, cant get the intel, and when we run, it drains our stamina bar. (the bar in tow when you capture a tent)

its free for all, and when the game ends, every one is kicked and the game starts all over again. also when the game starts, BOTH teams are locked, so only spectator team is there, and they cant speak unless teamchat.

there will be a day night cycle as well and night will have monsters come out so... bots? idk but the monsters are 1 shot headshot, and 2 shot spade anywhere. shotgun is also instakill for obvious reasons. ill let you think of other things to add cause my inagination... SUCKS! Blue_Happy1
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


bots would take server spots so no
Hypersonic1238
Winter Celebration 2013
Winter Celebration 2013
Posts: 24
Joined: Mon Aug 26, 2013 12:38 am


hmmmm then there could be traps instead? idk
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


1011Ev
Deuced Up
Posts: 90
Joined: Tue Feb 19, 2013 6:07 am


(No rush on these if decide to mess with my ideas).

Would it be possible to have scripts for the following:


-HideNSeek/PropHunt
Either a hide and seek type game or, prop hunt, though I think PH would be kind of hard unless you have a specific map.

-Infection
Good ol' zombie slaying. The round starts with a ratio of like 2 zombies for 3 humans. The zombies have unlimited lives but can only use their spades to kill. Once a human have been "bitten" they turn into a zombie and start attacking the human team. (You get the idea).


If they aren't possible, then they aren't possible. No sweat. Green_Happy3
223 posts Page 13 of 15 First unread post
Return to “Ideas / Requests”

Who is online

Users browsing this forum: No registered users and 18 guests