| 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
 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
 Netherlands
Posts: 398
Koekjen?
 diraibasodpower001myServer 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
 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. 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
|
 |
« 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
 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
|
 |
« 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
|
 |
« Reply #6 on: March 03, 2008, 04:46:40 PM » |
|
WCS:PythonEnjoy digging through it. ~J3ff
|
|
|
|
|
Logged
|
|
|
|
appples
Level 1 Trained Beginner
Offline
 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
|
 |
« 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
|
 |
« Reply #9 on: March 08, 2008, 10:07:30 AM » |
|
Using our race creating method... 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
 United States
Posts: 31
|
 |
« Reply #10 on: March 08, 2008, 08:22:13 PM » |
|
Thank you, that helps alot
|
|
|
|
|
Logged
|
|
|
|
|
joshtrav
|
 |
« Reply #11 on: March 08, 2008, 11:24:32 PM » |
|
Added that to help appples testing. We get this error when we use that: 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
 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
 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
|
 |
« 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
|
|
|
|
|
|
|