Raised This Month: $12 Target: $400
 3% 

[TF2] gScramble (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-05-2013 , 03:20   Re: [TF2] gScramble (Redux)
Reply With Quote #11

Just to let you know that you probably want to edit your message here so it doesn't link to the nuked thread.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
_david_
SourceMod Donor
Join Date: Apr 2013
Old 07-05-2013 , 03:34   Re: [TF2] gScramble (Redux)
Reply With Quote #12

Quote:
Originally Posted by RedSword View Post
Just to let you know that you probably want to edit your message here so it doesn't link to the nuked thread.
Yeah changed that one, i double posted the thread by accident :X
_david_ is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-05-2013 , 03:48   Re: [TF2] gScramble (Redux)
Reply With Quote #13

I meant you should redirect it towards this plugin's thread rather than https://forums.alliedmods.net/showthread.php?p=1983246 . You did edit it recently and put the same value it seems... ?
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 07-05-2013 , 04:31   Re: [TF2] gScramble (Redux)
Reply With Quote #14

In the old thread someone claimed that "Use GameMe Global Skill" is no longer available. Is it right?
__________________
cool_myll is offline
_david_
SourceMod Donor
Join Date: Apr 2013
Old 07-05-2013 , 04:57   Re: [TF2] gScramble (Redux)
Reply With Quote #15

Quote:
Originally Posted by RedSword View Post
I meant you should redirect it towards this plugin's thread rather than https://forums.alliedmods.net/showthread.php?p=1983246 . You did edit it recently and put the same value it seems... ?
Oops, edited again

Quote:
Originally Posted by cool_myll View Post
In the old thread someone claimed that "Use GameMe Global Skill" is no longer available. Is it right?
Thats was because the included gameme file was old
_david_ is offline
_david_
SourceMod Donor
Join Date: Apr 2013
Old 07-05-2013 , 11:16   Re: [TF2] gScramble (Redux)
Reply With Quote #16

Update!


Code:
5-7-2013 (v3.0.15)
* Fixed big memory leak
_david_ is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 07-07-2013 , 12:50   Re: [TF2] gScramble (Redux)
Reply With Quote #17

PHP Code:
L 07/07/2013 18:48:02: [SMNative "GetEntProp" reportedProperty "m_iScore" not found (entity 1/player)
L 07/07/2013 18:48:02: [SMDisplaying call stack trace for plugin "gscramble.smx":
L 07/07/2013 18:48:02: [SM]   [0]  Line 719gscramble/gscramble_autoscramble.sp::GetClientScrambleScore()
L 07/07/2013 18:48:02: [SM]   [1]  Line 820gscramble/gscramble_autoscramble.sp::ScramblePlayers()
L 07/07/2013 18:48:02: [SM]   [2]  Line 389gscramble/gscramble_autoscramble.sp::timer_ScrambleDelay() 
__________________
luki1412 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-07-2013 , 15:14   Re: [TF2] gScramble (Redux)
Reply With Quote #18

Quote:
Originally Posted by luki1412 View Post
PHP Code:
L 07/07/2013 18:48:02: [SMNative "GetEntProp" reportedProperty "m_iScore" not found (entity 1/player)
L 07/07/2013 18:48:02: [SMDisplaying call stack trace for plugin "gscramble.smx":
L 07/07/2013 18:48:02: [SM]   [0]  Line 719gscramble/gscramble_autoscramble.sp::GetClientScrambleScore()
L 07/07/2013 18:48:02: [SM]   [1]  Line 820gscramble/gscramble_autoscramble.sp::ScramblePlayers()
L 07/07/2013 18:48:02: [SM]   [2]  Line 389gscramble/gscramble_autoscramble.sp::timer_ScrambleDelay() 
Which would be because the player doesn't have an m_iScore. It's stored as a single value in CTeam (for team score) and in an array in CTFPlayerResource for players. Hence why the non-Redux version used TF2_GetPlayerResourceData to get this value.

In SourceMod 1.5, TF2_GetPlayerResourceData(client, TFResource_Score) has been deprecated in favor of the more generic:

PHP Code:
new entity GetPlayerResourceEntity(); // from sdktools
new score GetEntProp(entityProp_Send"m_iScore"client); 
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-07-2013 at 15:22.
Powerlord is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 07-07-2013 , 17:13   Re: [TF2] gScramble (Redux)
Reply With Quote #19

Quote:
Originally Posted by Powerlord View Post
Which would be because the player doesn't have an m_iScore. It's stored as a single value in CTeam (for team score) and in an array in CTFPlayerResource for players. Hence why the non-Redux version used TF2_GetPlayerResourceData to get this value.

In SourceMod 1.5, TF2_GetPlayerResourceData(client, TFResource_Score) has been deprecated in favor of the more generic:

PHP Code:
new entity GetPlayerResourceEntity(); // from sdktools
new score GetEntProp(entityProp_Send"m_iScore"client); 
I'm using 1.6 dev and this bug is causing not working scramble sometimes... It does works sometimes though...
__________________
luki1412 is offline
_david_
SourceMod Donor
Join Date: Apr 2013
Old 07-08-2013 , 12:25   Re: [TF2] gScramble (Redux)
Reply With Quote #20

Quote:
Originally Posted by luki1412 View Post
I'm using 1.6 dev and this bug is causing not working scramble sometimes... It does works sometimes though...
i think i have fixed your problem with the newest version, let me know.

--

Code:
8-7-2013 (v3.0.16) 
* Fixed problem with GetEntProp
Attached Files
File Type: sp Get Plugin or Get Source (gscramble.sp - 146 views - 81.4 KB)
File Type: zip Gscramble (redux).zip (120.2 KB, 134 views)

Last edited by _david_; 07-08-2013 at 12:25.
_david_ is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode