Scripting ideas
^i hover sometimes at 300 png so thats bad for me. I would get kicked from every server i join
This should work, but I haven't tested it (how would you!)
Attachments
kickhighping.py
(384 Bytes) Downloaded 259 times
(384 Bytes) Downloaded 259 times
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.
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
If you do it you get a cookie from me here you can see it:
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
If you do it you get a cookie from me here you can see it:
I think I can do one better; I won't tell you unless I complete it :)
Hey man I really like your work :), anyways I was wondering if you could complete this request?
Code: Select all
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
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)
Code: Select all
But I don't know what to do lol, I'd probably get around 100+ errors. """
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
for python I recommend http://www.codecademy.com/tracks/python
I'll have a look for you :)
I'll have a look for you :)
a grenade only script would be nice
thepolm3 wrote:for python I recommend http://www.codecademy.com/tracks/pythonAlright thanks man, and yeah I've looked into Codecademy but eh
I'll have a look for you :)
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.
-
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!
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!
bots would take server spots so no
-
Winter Celebration 2013
- Posts: 24
- Joined: Mon Aug 26, 2013 12:38 am
hmmmm then there could be traps instead? idk
(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.
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.
Who is online
Users browsing this forum: No registered users and 3 guests