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

[FIXED]Place Weapon On Map Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CowGod
Senior Member
Join Date: Feb 2015
Old 07-10-2016 , 23:24   [FIXED]Place Weapon On Map Issue
Reply With Quote #1

weapon has no recoil, sounds like desert eagle. wtf volvo.
PHP Code:
public Action DoSpawn(int clientint args)
{
    
int iEnt CreateEntityByName("weapon_awp");
    
float vec[3] =  { -1606.920776, -2366.99096664.031250 };
    
DispatchSpawn(iEnt);
    
ActivateEntity(iEnt);
    
TeleportEntity(iEntvecNULL_VECTORNULL_VECTOR);


Last edited by CowGod; 07-11-2016 at 23:20.
CowGod is offline
Send a message via Skype™ to CowGod
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-10-2016 , 23:31   Re: Place Weapon On Map Issue
Reply With Quote #2

Maybe this will help:
https://forums.alliedmods.net/showthread.php?t=274278
or
https://forums.alliedmods.net/showthread.php?t=269940
Maxximou5 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-11-2016 , 01:44   Re: Place Weapon On Map Issue
Reply With Quote #3

Before dispatching spawn you need to set the item definition index net prop.

The issue is the default defindex is 1 which is a deagle.

For fun try spawn weapon_negev and set the defindex to a taser.
__________________
Neuro Toxin is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-11-2016 , 01:57   Re: Place Weapon On Map Issue
Reply With Quote #4

I'd like to be wrong, but wasn't doing that setting off Valve's tripwire? I can't find the discussion about it.

Reference: https://forums.alliedmods.net/showpo...2&postcount=36

Last edited by Maxximou5; 07-11-2016 at 02:38. Reason: found reference
Maxximou5 is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 07-11-2016 , 02:09   Re: Place Weapon On Map Issue
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
Before dispatching spawn you need to set the item definition index net prop.

The issue is the default defindex is 1 which is a deagle.

For fun try spawn weapon_negev and set the defindex to a taser.
where can I find a list or more information about the item definition indexs?
CowGod is offline
Send a message via Skype™ to CowGod
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-11-2016 , 02:49   Re: Place Weapon On Map Issue
Reply With Quote #6

Here is a listing: https://tf2b.com/itemlist.php?gid=730
There was this: https://forums.alliedmods.net/showthread.php?t=283354 however, the author doesn't have an active api anymore. You could poke him to get it going again or use his bitbucket.
Maxximou5 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-11-2016 , 04:40   Re: Place Weapon On Map Issue
Reply With Quote #7

Never set a knife index unless u want a gslt ban
__________________
Neuro Toxin is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 07-11-2016 , 23:20   Re: Place Weapon On Map Issue
Reply With Quote #8

Fixed, thanks to you guys! Had to change "FollowCSGOServerGuidelines" "no" in addons/sourcemod/configs/core.cfg and it worked like a charm with
PHP Code:
int index 9;
SetEntProp(iEntProp_Send"m_iItemDefinitionIndex"index); 

Last edited by CowGod; 07-11-2016 at 23:20.
CowGod is offline
Send a message via Skype™ to CowGod
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-12-2016 , 01:20   Re: Place Weapon On Map Issue
Reply With Quote #9

Quote:
Originally Posted by CowGod View Post
Fixed, thanks to you guys! Had to change "FollowCSGOServerGuidelines" "no" in addons/sourcemod/configs/core.cfg
That's a good way to get your servers banned. You'll have to make a new Steam account and buy a new copy of CS:GO in order to make new servers.
__________________

Last edited by ddhoward; 07-12-2016 at 01:21.
ddhoward is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 07-12-2016 , 01:39   Re: [FIXED]Place Weapon On Map Issue
Reply With Quote #10

I was told it will only ban if you are changing item index's for knifes
CowGod is offline
Send a message via Skype™ to CowGod
Reply



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 01:49.


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