EventScripts Forums
Mattie's EventScripts and Source Forums
Script Categories
16000 (15) abilities (15) addon (72) addons (17) admin (354) admins (23) advert (29) adverts (27) afk (18) alerts (12) ammo (25) anti (21) armor (11) auth (16) automatic (15) awp (29) ban (24) bank (11) ba_jail (35) bhop (46) block (27) bomb (48) bonus (25) boost (22) bot (36) bot-management (20) bots (24) bullet (13) bunnyhop (19) Buy (27) buymenu (13) c4 (12) cash (76) Change (14) chat (77) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (21) config (28) configurable (11) connect (58) counter (12) Counter-Strike-Source (20) CS:S (20) css (3372) custom (13) Damage (49) database (14) dead (19) Deagle (11) death (20) deathmatch (79) deathrun (17) deutsch (15) dice (12) disconnect (26) Dissolve (12) dm (24) dod:s (11) dods (500) download (13) easy (26) effect (14) effects (126) English (16) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (11) gameplay (175) German (11) give (21) gravity (16) grenade (28) grenades (32) gun (16) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (72) hegrenade (15) help (11) hit (13) hl2dm (440) HP (26) hudhint (13) hun (14) hungarian (26) info (52) information (19) invisible (11) IP (13) jail (81) jailbreak (14) join (47) jump (19) kick (25) kill (51) kills (24) knife (66) leveling (38) LnD (14) lol (11) magyar (43) management (14) manager (11) mani (16) map (32) map-management (26) maps (17) match (21) Memphis-84 (13) menu (143) message (34) messaging (52) minecraft (12) mod (121) model (18) models (33) modye (16) money (50) motd (13) music (32) mute (20) nades (20) name (15) new (13) noblock (54) orangebox (23) player (48) player-management (31) player-tracking (28) popup (71) prop (13) propmenu (14) props (34) protect (12) protection (32) punish (11) punishment (51) python (80) quake (32) QuakeSounds (12) race (13) races (20) radio (30) random (47) rank (42) rates (15) rcon (12) realism (22) Regeln (23) respawn (67) restrict (41) round (26) rpg (32) rules (62) say (17) score (16) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (61) server-tools (42) shop (12) showdamage (20) silly (31) simple (33) skin (17) skins (34) slay (13) soccer (14) sound (67) sounds (107) source (15) spanish (18) spawn (82) speed (26) statistics (14) stats (57) status (15) Steam (11) STEAMID (30) Superhero (15) surf (41) Team (30) team-balance (14) teleport (17) text (19) TF2 (142) time (23) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (23) vote (39) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (87) weapons (120) web (16) welcome (14) wuerfeln (11) zm (26) zombie (100) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) adyshor37 (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chris1888 (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) dead man walker (12) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fridge (5) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (20) Mickyy (5) micmacx (6) minimal42O (5) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (16) MrScriptaz (6) mryoung (6) MyTechZone.de (9) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) qwern (5) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (12) stabby (22) stas (27) Stirni (6) stonedegg (8) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic This topic is locked, you cannot edit posts or make further replies.
Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 13  Next
Author Message
User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-15, 11:51 am 

Awesome job! I'll have to take a look at this later.

Satoon


User avatar
Helper
Profile

Posts: 268
 
New postPosted: 2012-02-15, 2:02 pm 

Nicely done!

I'll have to test it out also!


User avatar
Veteran
Profile

Posts: 895
Location:
Germany
 
New postPosted: 2012-02-17, 3:52 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

A!W!E!S!O!M!E!
Thanks!

-Stirni


User avatar
Newbie
Profile

Posts: 31
 
New postPosted: 2012-02-18, 6:00 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

cannot import name detourfunction
http://prikachi.com/images/311/4419311O.jpg

What does it mean cannot import name detourfunction.
Before this was anothere error.So i had put the latest SPE and now i have this error :( Can anyone help.I am noob :(


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-18, 6:20 pm 

There are 2 versions of SPE. The latest non-Alpha version does not have the Detours built-in. The version in the main post in this current thread is what you will need to be running. Here's a quick link to that first post:
viewtopic.php?p=392167#p392167

Make sure if you do what it says under Loading this plugin: in that post. You need to remove the sp_extensions.vdf file from your server and add that command where it says to.

Satoon


User avatar
Newbie
Profile

Posts: 31
 
New postPosted: 2012-02-19, 3:56 am 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

I return to the first mistake no module named spe_C
http://prikachi.com/images/209/4420209M.jpg


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-19, 11:05 am 

Looks to me like the FFA script was loaded "prior" to SPE. Make sure that the line in your autoexec.cfg is near the top and definitely prior to your es_load ffa line.

Satoon


User avatar
Newbie
Profile

Posts: 31
 
New postPosted: 2012-02-19, 11:42 am 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

I had put es_load ffa on the top .Same error still appear.


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-19, 11:53 am 

What does your autoexec.cfg look like right now? Post it here.

Satoon


User avatar
Newbie
Profile

Posts: 31
 
New postPosted: 2012-02-19, 12:03 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

http://prikachi.com/images/405/4422405k.jpg


User avatar
Veteran
Profile

Posts: 895
Location:
Germany
 
New postPosted: 2012-02-19, 12:18 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

Now, How to switch a player with spe? I cannot get It run
PYTHON:
    spe.call('change_team', spe.getPlayer(<USERID>))
     

But wheres the destination?
Please help me.

-Stirni


User avatar
Guru
Guru
Profile

Posts: 1548
Location:
Germany
 
New postPosted: 2012-02-19, 12:39 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

There are many possibilities :)
PYTHON:
    # from spe.tools.player import SPEPlayer
    spe_player = SPEPlayer(userid)

    spe_player.change_team(teamid)
    spe_player['change_team'](teamid)
    spe_player.change_team = teamid
    spe_player['change_team'] = teamid

    # import spe
    spe.switchTeam(userid, teamid)
    spe.call("ChangeTeam", spe.getPlayer(int(userid)), teamid)


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-20, 4:04 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

kvazimodera wrote:
http://prikachi.com/images/405/4422405k.jpg
Again, you need to load the "plugin" prior to loading the "script". Move the last line to the very top, and it should work.

Satoon


User avatar
Professor
Professor
Profile

Posts: 1829
Location:
Belgique (Liège-Huy)
 
New postPosted: 2012-02-20, 6:36 pm 

Hello,

When I try to use it:
Code:
def load ():
    spe.detourFunction("OnTakeDamage", spe.HookType.Pre, pre_player_hurt)

def pre_player_hurt (args):
    damagesInfos = spe.makeObject("CTakeDamageInfo", args[0])
    es.msg(damagesInfos.bitsDamageType)


When i make an Headshot on Windows, it's 1073741824 and on Linux, it's 103220780, 103230710, 108185780 or other... For a HEGRENADE, on windows, it's 64 and on Linux, 58262423, 58262419 or other... Offsets problem?

Image

Thx

_________________
Cordialement, Messiah93.

Image
Image
messiah93.com


Last edited by Messiah93 on 2012-02-20, 9:54 pm, edited 5 times in total.

User avatar
Newbie
Profile

Posts: 50
 
New postPosted: 2012-02-23, 2:06 am 

Code:
def damage_callback_pre(args):
   Info = spe.makeObject('CTakeDamageInfo', args[0])
   weapon = Info.hWeapon


always -1


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-23, 9:25 pm 

Reported:
viewtopic.php?p=392312#p392312

Answered:
viewtopic.php?p=392340#p392340

Satoon


User avatar
Moderator
Moderator
Profile

Posts: 6416
 
New postPosted: 2012-02-26, 6:53 pm 

I updated the files with one big change. Added in the ability to get and set string offsets within SPE Tools. Also added in SPEPlayer offsets for name and clantag. This allows you to get both a player's name and their clantag. You cannot "set" a player's name, though, but you can their clantag.

Thanks go to fratacos for figuring out the string offsets!! I refined the process so that it should work well for any string offsets found in the future (hopefully).

Satoon


User avatar
Newbie
Profile

Posts: 50
 
New postPosted: 2012-02-27, 12:17 pm 
   Post subject: Re: SPE with Dynamic Hooks [ALPHA]

PYTHON:
    def damage_callback_pre(args):
            Info = spe.makeObject('CTakeDamageInfo', args[0])
            if Info.hAttacker == Info.hInflictor:
                    attacker = int(es.getuserid(Info.hAttacker))

            return (spe.HookAction.Continue, 0)


es.getuserid crash my server. Not always, but often...


Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 229 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 13  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group