Search found 261 matches
- Sat Jan 07, 2017 12:43 am
- Forum: Plugin Development Support
- Topic: Changing a players view entity
- Replies: 1
- Views: 2064
Changing a players view entity
So today I'm trying to change my view entity (not the entity I'm viewing at but the entity I'm viewing through) but without any luck. I know SM has the function "SetClientViewEntity" which does the trick quite well, so I'm absolutely sure it is possible in SP too, but I have no idea how. I...
- Fri Jan 06, 2017 7:37 pm
- Forum: Plugin Development Support
- Topic: Accessing m_pMainGlow and m_pGlowTrail
- Replies: 4
- Views: 3530
Re: Accessing m_pMainGlow and m_pGlowTrail
I can confirm that it works perfectly now! Thank you very much
- Thu Jan 05, 2017 9:31 pm
- Forum: Plugin Development Support
- Topic: Accessing m_pMainGlow and m_pGlowTrail
- Replies: 4
- Views: 3530
Accessing m_pMainGlow and m_pGlowTrail
Hey guys, I've got another question for you. I'm trying to access the values m_pGlowTrail and m_pMainGlow on creation of any entity npc_grenade_frag. Dumping the datamaps showed me that those values in fact do exists but when I try to acces them I get this error for either of them: http://i.imgur.co...
- Wed Jan 04, 2017 12:48 pm
- Forum: Plugin Development Support
- Topic: HL2DM End of Map
- Replies: 2
- Views: 2354
Re: HL2DM End of Map
Thank you very much this was a great idea! Works like a charm :)
- Wed Jan 04, 2017 10:22 am
- Forum: Plugin Development Support
- Topic: HL2DM End of Map
- Replies: 2
- Views: 2354
HL2DM End of Map
Hey guys I have yet another question! I've been trying to find a way to find the exact point in HL2DM where the final scoreboard on a map pops up and you cannot move. The ultimate goal is to create a "nextmap" variable, that changes the map, before the server does it on its own. I've tried...
- Wed Dec 28, 2016 7:51 am
- Forum: Plugin Development Support
- Topic: Delay problems
- Replies: 2
- Views: 2640
Re: Delay problems
Okay, wow. This is propably the only thing I did not try already and it works. Thank you very much for that quick and great help! :)
- Tue Dec 27, 2016 10:28 pm
- Forum: Plugin Development Support
- Topic: Delay problems
- Replies: 2
- Views: 2640
Delay problems
Hey guys I'm currently trying to create and remove an overlay in hl2dm. This is are the ways I tried to do it: def create_overlay(index, overlay, duration): player = Player(index) player.client_command('r_screenoverlay %s' % overlay) player.delay(duration, remove_overlay, index) def remove_overlay(i...
- Sun May 29, 2016 8:59 pm
- Forum: Plugin Development Support
- Topic: BotCmd and bot_manager
- Replies: 4
- Views: 3642
Re: BotCmd and bot_manager
Okay, I'm propably noobing out alot right now, but this looks a lot like it could be used to create custom bots :D Am I absolutely wrong or might this be possible with SP?
- Sun Apr 17, 2016 11:57 pm
- Forum: Plugin Development Support
- Topic: CS:GO XRay
- Replies: 2
- Views: 4850
CS:GO XRay
Hey guys, I just found out that you can see your teammates through walls in CS:GO if you are dead (I did not really play the game that much so I never noticed) and I thought that it should propably be possible to "abuse" this system and make it possible for living players to see other play...
- Fri Mar 25, 2016 10:50 am
- Forum: Plugin Development Support
- Topic: KillerInfo
- Replies: 4
- Views: 3641
- Fri Mar 04, 2016 8:11 pm
- Forum: Plugin Development Support
- Topic: Spawning a 'ghost entity'
- Replies: 10
- Views: 8406
- Fri Mar 04, 2016 7:25 pm
- Forum: Plugin Development Support
- Topic: Spawning a 'ghost entity'
- Replies: 10
- Views: 8406
I'm not really sure what EntityFactory even is, so no clue if using that is any better. But for the hostage approach, here are some informations which I gathered for a pet plugin: The entity name: hostage_entity The prop you need to change in order for them to follow a player: CHostage.m_leader <pla...
- Fri Mar 04, 2016 7:07 pm
- Forum: Plugin Development Support
- Topic: Spawning a 'ghost entity'
- Replies: 10
- Views: 8406
Do you want this entitiy to move around? If not, you could just spawn a prop_dynamic entity and change its model to whatever you want. Otherwise you'd be asking for NPCs which aren't that easy to add. Not sure if that's what you ment^^ Edit: Oh and what about hostage entities? You can make them foll...
- Tue Feb 09, 2016 11:41 am
- Forum: Plugin Development Support
- Topic: <player>.set_name doesnt work
- Replies: 10
- Views: 6243
Just a thought, but the name in CS:S and CS:GO is directly taken from the Steam settings for friends. When testing this in CS:GO I noticed, that the scoreboard name changes, the ingame chat name on the other hand does not. Maybe this is the reason you didn't notice a change? Edit: If that in case is...
- Fri Feb 05, 2016 12:07 pm
- Forum: Plugin Development Support
- Topic: Splitting an int into a list of subints (addition)
- Replies: 7
- Views: 5250
Splitting an int into a list of subints (addition)
So yeah this is not necessarily SP related but I'm trying to create a function like: split_number(<numbertosplit>, <maxsizeofelements>, <maxnumberofelements>) The return should be a list of numbers that added together give the original number like: 10 = ['2', '5', '3'] I've managed to make i...
- Thu Feb 04, 2016 2:27 pm
- Forum: Plugin Development Support
- Topic: eval() security
- Replies: 8
- Views: 6670
- Thu Feb 04, 2016 1:10 pm
- Forum: Plugin Development Support
- Topic: eval() security
- Replies: 8
- Views: 6670
Thank you for your answers! I'm actually trying to replace servercommands I previously made (lets say a servercommand for freezing a player) and calling the function to that directly to avoid having registered like thousand server commands. It kinda works now, but with restrictions. I have this test...
- Thu Feb 04, 2016 9:21 am
- Forum: Plugin Development Support
- Topic: eval() security
- Replies: 8
- Views: 6670
eval() security
Hey guys, I've been exploring the possibilities to execute a python function with a servercommand and I came across eval(). Example of what I'm trying to do: execute_python test_module test_function <args> which would then call: def test_function(args): in the test_module. But while looking ...
- Fri Jan 15, 2016 9:41 pm
- Forum: Plugin Releases
- Topic: Simple Deagle Headshot Only
- Replies: 9
- Views: 8864
- Fri Jan 15, 2016 9:26 pm
- Forum: Plugin Releases
- Topic: Simple Deagle Headshot Only
- Replies: 9
- Views: 8864
Thank you for your answer! To 1: Thats why I used PreEvent which fires before the damage is done, so an AWP body kill is not possible (to be sure I tested that) I tried hooking OnTakeDamage but TakeDamageInfo didn't seem to include the hitgroup so I went with PreEvent To 2: Added that, thank you! I ...