Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 34
Search took 0.01 seconds.
Search: Posts Made By: Sil3nt Pr0digy
Forum: Scripting 03-22-2011, 14:15
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Can someone please help me out? I have tried so many different ways to get this to work, none have succeeded. I am really close, I just am not pulling the correct animation m_flCycle. The one I am...
Forum: Scripting 03-22-2011, 02:59
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Still doesn't change the fact that it isn't working :/
Forum: Scripting 03-20-2011, 13:44
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Oh yeah, -.-

Good point, my bad. I tried using DT_ServerAnimationData when using Data not prop.
Forum: Scripting 03-20-2011, 00:27
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

I had already tried that as well, on both DT_ServerAnimationData, and CBaseCombatWeapon. So I tried it again. No changes.
Forum: Scripting 03-19-2011, 12:16
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Ok, I got the weapon entity now.

Now on to grabbing "m_flCycle". Using the earlier code gave me a constant 0.0000 which means I am still pulling the wrong animation data from it. So I tried...
Forum: Scripting 03-19-2011, 11:57
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Yes I am, I will try GetEntPropEnt instead
Forum: Scripting 03-18-2011, 14:14
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

I'm pretty sure I'm not getting the right offset, as "new weapon = GetEntProp(client, g_offsActiveWeapon, 4);" is what is crashing my server. I commented out that line, and sure enough, ran just...
Forum: Scripting 03-18-2011, 04:28
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

I would really appreciate some insight on how to access m_flCycle for a weapon, as is, the plugin simply crashes the server when a player tries to join a team :/
Forum: Scripting 03-18-2011, 04:26
Replies: 3
Views: 978
Posted By Sil3nt Pr0digy
Re: How to fix that?

what version of sourcemod are you using?
Forum: Scripting 03-17-2011, 05:59
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Using:

public OnPreThink(client)
{
if(IsClientConnected(client) && IsClientInGame(client) && IsPlayerAlive(client) && !IsFakeClient(client))
{
new weapon = GetEntData(client,...
Forum: Scripting 03-16-2011, 13:40
Replies: 6
Views: 3,033
Posted By Sil3nt Pr0digy
Re: TR_GetPlaneNormal

Are you asking what TR_GetPlaneNormal does?
Forum: Scripting 03-16-2011, 11:53
Replies: 3
Views: 1,592
Posted By Sil3nt Pr0digy
Re: L4D2 [Point System] Menu

SourceMod (http://forums.alliedmods.net/forumdisplay.php?f=52) > Plugins (http://forums.alliedmods.net/forumdisplay.php?f=123) > Plugin/Gameplay Ideas and Requests
...
Forum: Scripting 03-16-2011, 06:16
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Alright so apparently I am still doing something wrong :/

Current Code:


new g_offsActiveWeapon;
new g_offsNextPrimaryAttack;
new g_offsNextSecondaryAttack;
new g_offsPlaybackRate;
new...
Forum: Scripting 03-16-2011, 06:00
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Getting this:

03/16/2011 - 05:59:58: [SM] Native "GetEntData" reported: Integer size 3 is invalid

NOTE:

I thought that having the size at 3 was strange, as I never see anything that is 3...
Forum: Scripting 03-16-2011, 05:54
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Forum: Scripting 03-16-2011, 04:12
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Anyone? I would really appreciate the input :D
Forum: Scripting 03-15-2011, 23:28
Replies: 3
Views: 1,592
Posted By Sil3nt Pr0digy
Re: L4D2 [Point System] Menu

Have you read the Pawn Tutorial? If so, have you taken the time to read the Menu API section of the wiki?
Forum: Scripting 03-15-2011, 20:50
Replies: 3
Views: 968
Posted By Sil3nt Pr0digy
Re: sound problem

Where is the file stored on the linux box?
Forum: Scripting 03-15-2011, 17:26
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Alright, and how would one do that?

Thanks ahead of time :D
Forum: Scripting 03-15-2011, 15:35
Replies: 16
Views: 3,694
Posted By Sil3nt Pr0digy
Re: Why it dont stay?

If it is because of how the maps lighting was generated, there is really not much you can do.
Forum: Scripting 03-15-2011, 04:12
Replies: 16
Views: 3,694
Posted By Sil3nt Pr0digy
Re: Why it dont stay?

That is probably because of how the map and it's lighting was created.
Forum: Scripting 03-14-2011, 19:02
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Alright I still seem to be having trouble. This is my current code:



new g_offsActiveWeapon;
new g_offsNextPrimaryAttack;
new g_offsNextSecondaryAttack;
new g_offsPlaybackRate;
new...
Forum: Scripting 03-13-2011, 21:01
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Thank you. so m_flPlaybackRate effects the animation rates? Good to know.

So essentially, i should detect on animation complete, then modify the playback rate so that it is equal to the modifier...
Forum: Scripting 03-13-2011, 14:30
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

Care to break down and explain any of the code? There is not much documentation on modifying prop values.
Forum: Scripting 03-13-2011, 14:25
Replies: 35
Views: 12,195
Posted By Sil3nt Pr0digy
Re: Help Modifying Weapon Fire Rate Using m_flNextPrimaryAttack

I was doing something like this:


public OnPostThinkPost(client)
{
if(IsClientConnected(client) && IsClientInGame(client) && IsPlayerAlive(client) && !IsFakeClient(client))
{
...
Showing results 1 to 25 of 34

 
Forum Jump

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


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