Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-02-04 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 04, 2010, 04:09:38 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Race Ideas, and helpful advice!  (Read 570 times)
7355608
Level 1 Trained Beginner
*
Offline Offline

Canada Canada

Posts: 20



rsin314159
« on: February 29, 2008, 03:47:57 AM »

Got a race idea? Don't know how to make it? Need help?

Just want someone else to code a race for you?

Ask away!
Logged

Diraiba
not not telling you why im not no amdin cause i am
Moderator
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 398


Koekjen?


WWW
diraiba
sodpower001

myServer 83.223.105.18:27015
(Warning: click connects through Steam)
« Reply #1 on: March 01, 2008, 02:01:51 AM »

ok i have an idea,

You made the activation code for ability's !ultimate & !ability
Maybe remove the ! so that people will have to Bind Nothing since they already have it all binded for WCS??

And make Shopmenu so that you can just type shopmenu or shopmenu2
But so that players whom have binded shopmenu can press their button and make a Tab there to shopmenu2??


Hope this helps you out !!
Logged


7355608
Level 1 Trained Beginner
*
Offline Offline

Canada Canada

Posts: 20



rsin314159
« Reply #2 on: March 01, 2008, 02:48:13 AM »

When you type shopmenu, the shopmenu selection screen comes up. If you type shopmenu1 or shopmenu2 those menus come up directly.

Why do the shopmenus not link into each other? Simple, you can only display so many items per page. I don't want to confuse players as to what menu they're on. All the menus use easymenu, so they are not limitted to how many things you can put on them. This means the menus will have multiple pages. Where would that option fit in? It would be rather silly to put it in as the 7th option on every menu, and only display 6 items at a time.

The ultimate command is !ultimate by default, but nothing says you can't change it.

Code
GeSHi (python):
es.regclientcmd('!ultimate','wcs2/use_ultimate')
es.regclientcmd('!ability','wcs2/use_ability')
 

That is all you need to change
« Last Edit: March 01, 2008, 02:56:48 AM by 7355608 » Logged

freddukes
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 292



« Reply #3 on: March 02, 2008, 02:05:58 PM »

I've got advice.. Hmm the Pickle module is really good, but have you looked into cPickle? It can store data up to 1000 times faster than pickle, which means faster data transfer between the files. It's pretty simple as well; virtually the same code as pickle...

-freddukes
Logged

7355608
Level 1 Trained Beginner
*
Offline Offline

Canada Canada

Posts: 20



rsin314159
« Reply #4 on: March 02, 2008, 02:57:07 PM »

I'll keep it in mind, thanks for the advice. How about you post your code now, so I can start giving you advise on it.
Logged

freddukes
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 292



« Reply #5 on: March 02, 2008, 03:34:56 PM »

It's posted in the private beta section... We're thinking of a release in a day or so... We're just finilizing a few commands, and I'm updating the wiki. It's virtually in a state for release now.

-freddukes
Logged

Jeff
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 458



WWW
beastrace91
« Reply #6 on: March 03, 2008, 04:46:40 PM »

WCS:Python

Enjoy digging through it.

~J3ff
Logged

appples
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 31



« Reply #7 on: March 08, 2008, 04:47:14 AM »

i am unsure if this is right place, then again it does say "helpful advice"
anyway, i have a question, would there be a way to create a dictionary on a text command, that  saves player positions, weather they are alive or not, ammo, health and then reset everything to that?
Logged
Jeff
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 458



WWW
beastrace91
« Reply #8 on: March 08, 2008, 04:57:38 AM »

Easy enough you can easily use playerlib/es.getplayerprop to store player data like this to a dict.

~J3ff
Logged

freddukes
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 292



« Reply #9 on: March 08, 2008, 10:07:30 AM »

Using our race creating method...

Code
GeSHi (python):
import es, wcs
from wcs import wcs
 
RaceName = 'Time Shifter'
race = wcs.Race(RaceName)
 
race.registerUltimate('Time Shift', 1, 1, 1, 'Use the ultimate key to first place the Time-Shift, then press it again to revert back to it')
 
PlayerDict = {}
 
def player_spawn(ev):
   PlayerDict[ev['userid']] = {}
 
def player_ultimate_on(ev):
   userid = ev['userid']
   level = wcs.GetLevel(userid, RaceName, 'Time Shift')
   if level:
       key = PlayerDict[userid]
       if not len(PlayerDict[userid]):
           # Sets the players Health, Armor, Position, EyeAngles, Guns and Clip
           key['Health'] = int(es.getplayerprop(userid,'CBasePlayer.m_iHealth'))
           key['Armor'] = int(es.getplayerprop(userid,'CCSPlayer.m_ArmorValue'))
           key['X'], key['Y'], key['Z'] = es.getplayerprop(userid)
           key['Pitch'], key['Yaw'], key['Roll'] = wcs.Command(userid).GetViewAngles()
           player = playerlib.getPlayer(userid)
           key['Primary'], key['Secondary'] = player.get('primary'), player.get('secondary')
           key['Pri Ammo'], key['Sec Ammo'] = player.get('ammo','1'), player.get('ammo','2')
           key['Pri Clip'], key['Sec Clip'] = player.get('clip','1'), player.get('clip','2')
       else:
           health, armor, x, y, z, pitch, yaw, roll, primary, secondary, priamm, secamm, priclip, secclip = key['Health'], key['Armor'], key['X'], key['Y'], key['Z'], key['Pitch'], key['Pitch'], key['Roll'], key['Primary'], key['Secondary'], key['Pri Ammo'], key['Sec Ammo'], key['Pri Clip'], key['Sec Clip']
           a = wcs.Command(userid)
           a.Health(health)
           a.Armor(armor)
           es.server.cmd('es_xsetpos %s %s %s %s'%(userid,x,y,z))
           es.server.queuecmd('est_SetViewAngle %s %s %s %s'%(userid, pitch, yaw, roll))
           es.server.cmd('est_removeweapon %s 1'%userid)
   es.server.cmd('est_removeweapon %s 2'%userid)
           es.server.cmd('es_xgive %s %s'%(userid,primary))
           es.server.cmd('es_xgive %s %s'%(userid,secondary))
           a.Clip(priclip,1)
           a.Clip(secclip,2)
           a.Ammo(priamm,1)
           a.Ammo(secamm,2)
           es.tell(userid,'You have been reverted back to your former self!')
 

That will revert back to your:

Guns - (same clip/ammo)
Position - (including where you was looking)
Health
Armor

You can obiously take this one step further like grenades etc, this was just a little example

-freddukes
Logged

appples
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 31



« Reply #10 on: March 08, 2008, 08:22:13 PM »

Thank you, that helps alot
Logged
joshtrav
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 92



WWW
76561197991487373

myServer 72.5.102.36:27015
(Warning: click connects through Steam)
« Reply #11 on: March 08, 2008, 11:24:32 PM »

Added that to help appples testing.  We get this error when we use that:

Code
GeSHi (python):
03/08/08 15:23:19
Traceback (most recent call last):
 File "C:\Program Files\Valve\HLServer\CSSserver\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
   self.EventListeners[eventname][listener](event_var)
 File "C:\Valve\HLServer\CSSserver\cstrike\addons\eventscripts\wcs\races\Time Shifter\Time Shifter.py", line 23, in player_ultimate_on
   key['X'], key['Y'], key['Z'] = es.getplayerprop(userid)
TypeError: 'NoneType' object is not iterable
Logged

appples
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 31



« Reply #12 on: March 09, 2008, 05:23:31 AM »

o  :oops:, well i was just trying to see it work, owell. working on implementing into race now.
Logged
eagle
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 59




nivek3
« Reply #13 on: June 30, 2008, 11:39:59 PM »

hey could you make me a simple race that just has speed invisible and low gravity plz
Logged
Jeff
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 458



WWW
beastrace91
« Reply #14 on: July 01, 2008, 10:56:02 PM »

hey could you make me a simple race that just has speed invisible and low gravity plz

Bomb codes mod = Dead

~J3ff
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 02:33:47 AM
Sup?
Today at 02:33:37 AM
hey Ghost
Today at 01:44:10 AM
hey dark
February 02, 2010, 10:43:30 AM
Yap, he mean eventscripter xD
February 02, 2010, 01:03:48 AM
Eventscripter. lol
February 02, 2010, 12:23:17 AM
A WCS scripter?
February 01, 2010, 06:12:18 PM
izh lookeh for 1 scripter to supp0t me
Recent
[Today at 01:30:33 AM]

[Today at 12:44:51 AM]

[February 03, 2010, 11:57:35 PM]

[February 03, 2010, 11:17:14 PM]

[February 03, 2010, 10:05:11 PM]

[February 03, 2010, 09:50:54 PM]

[February 03, 2010, 06:40:35 PM]

[February 03, 2010, 05:37:57 PM]

[February 03, 2010, 04:33:23 PM]

[February 03, 2010, 02:30:39 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.288 seconds with 23 queries.