Raised This Month: $115 Target: $400
 28% 

modCS (damage/speed mod for CSS)


Post New Thread Reply   
 
Thread Tools Display Modes
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 03-09-2008 , 12:44   Re: modCS (damage/speed mod for CSS)
Reply With Quote #41

Quote:
Originally Posted by LocutusH View Post
Does this plugin affect the hitreg also?
I mean, it hooks data if someone is hit, and this may cause calculation problems, or not?
No. The code gets called when someone is hit. It can modify the data, but the original code always runs so it won't affect hitreg.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 03-12-2008 , 12:48   Re: modCS (damage/speed mod for CSS)
Reply With Quote #42

Is there a possibility to see the sourcecode?

Just to know - how it is working.
__________________
LocutusH is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 03-12-2008 , 17:04   Re: modCS (damage/speed mod for CSS)
Reply With Quote #43

It just uses sourcehook to hook the TraceAttack function on each player that joins. Then this code gets called every time the game's TraceAttack gets called:
Code:
void SamplePlugin::TraceAttack_handler( CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr )
{
    // adjust damage for ALL players 
    float damage = info.GetDamage();
    damage = damage * mc_damage_mult.GetFloat() + mc_damage_add.GetFloat();
    info.SetDamage(damage);

    // use modified damage info
    RETURN_META(MRES_HANDLED);  
}
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 03-13-2008 , 05:56   Re: modCS (damage/speed mod for CSS)
Reply With Quote #44

Are the damage stat plugins getting the info before the changes are done, or after that?

Btw, whats the progress with the variable?
__________________

Last edited by LocutusH; 03-13-2008 at 06:59.
LocutusH is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 04-01-2008 , 12:10   Re: modCS (damage/speed mod for CSS)
Reply With Quote #45

This would be a good april 1 joke
If it would not announce, that i have reduced the damage for every weapon to 10% D
__________________
LocutusH is offline
zephibung
New Member
Join Date: Aug 2008
Old 08-16-2008 , 19:29   Re: modCS (damage/speed mod for CSS)
Reply With Quote #46

I get the following in the server console when I try to load modCS in css

Code:
Console initialized.
Game.dll loaded for "Counter-Strike: Source"
maxplayers set to 14
Unknown command "mc_mode"
Unknown command "mc_all_mult"
Unknown command "mc_all_add"
Unknown command "mc_all_speed"
modcs.cfg executed.
Console: Server.cfg has been executed"
Network: IP ##.##.##.##, mode MP, dedicated Yes, ports 27018 SV / 27006 CL
[DUKEBASE] Calling ScanFuncs.Initialize(...)
[DUKEBASE] Scanfuncs initializing
[DUKEBASE] 0xf6810870 addr1
[DUKEBASE] 0xf6d57244 g_pGameRules
Program Start at [0x80da350]
_Z18CreateEntityByNamePKci
[DUKEBASE] 0xf6776f60 m_CreateEntityByNameFunc
g_EventQueue
[DUKEBASE] 0xf6d14860 gEventQueue
_ZN11CEventQueue8AddEventEP11CBaseEntityPKcfS1_S1_i
[DUKEBASE] 0xf66bdbe0 m_AddEventFunc
_ZN11CEventQueue8AddEventEP11CBaseEntityPKc9variant_tfS1_S1_i
[DUKEBASE] 0xf66bd6f0 m_AddEventFunc2
_ZN11CEventQueue8AddEventEPKcS1_9variant_tfP11CBaseEntityS4_i
[DUKEBASE] 0xf66bd070 m_AddEventFunc3
gEntList
[DUKEBASE] 0xf6d19880 g_EntList
_ZN17CGlobalEntityList17AddListenerEntityEP15IEntityListener
[DUKEBASE] 0xf66f2390 m_AddListenerEntityFunc
_ZN9CCSPlayer12RoundRespawnEv
[DUKEBASE] 0xf6a94880 m_RespawnFunc
te
[DUKEBASE] 0xf6c66408 g_te
[DUKEBASE] 0xf6d4da18 g_te
_ZN12CCSGameRules14CheckMaxRoundsEv
[DUKEBASE] 0xf69f0990 m_CheckMaxRoundsFunc
_ZN12CCSGameRules14TerminateRoundEfi
[DUKEBASE] 0xf69f6270 m_TerminateRoundFunc
_ZN9CCSPlayer18SetProgressBarTimeEi
[DUKEBASE] 0xf6a91f70 m_BarTimeFunc
_ZN12CCSGameRules19GetMapRemainingTimeEv
[DUKEBASE] 0xf69f2270 m_GetMapRemainingTimeFunc
[DUKEBASE] Completed ScanFuncs.Initialize(...) call
[DUKEBASE] VFuncs loaded
[DUKEBASE] DBUtils initialized.
L 08/16/2008 - 19:59:39: -------- Mapchange to de_dust2 --------
Executing dedicated server config file
Error: Material "sprites/bubble" : proxy "AnimatedTexture" not found!
Section [Scenes]: 0 resources total 0 bytes, 0.00 % of limit (2.10 MB)
appdatacache.cpp (311) : Assertion Failed: !"Implement me"
modcs.cfg executed.
Adding master server 72.165.61.189:27011
Adding master server 69.28.151.162:27011
./srcds_run: line 344:   394 Segmentation fault      $HL_CMD
The only addons I have are the latest version of metamod & sourcemod.

Note: this error only occurs when loading this addon. When i remove it, metamod and sourcemod work perfectly

All the files have been placed in their proper location, including the addons/modcs/cfg/gameinfo.ini file

Last edited by zephibung; 08-16-2008 at 20:03.
zephibung 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 17:05.


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