Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-09-01 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: kniferaces  (Read 68 times)

^[Psycho]^

  • Level 7 Expert
  • Posts: 203
  • ~~~~~~~~
kniferaces
« on: August 30, 2010, 10:57:10 PM »
hey guys, i noticed
kniferaces loose their bombs on spawn am i the only one?

Scyther

  • Level 4 Intermediate
  • Posts: 92
  • <3 WCS :)
Re: kniferaces
« Reply #1 on: August 31, 2010, 12:14:34 AM »
They lose the bomb as knifed races restrict all then unrestrict knife and c4 and since if you gain a restricted weapon it destroys it instead of dropping it if you spawn with the bomb it will destroy it

Yiyas

  • Watchdogs
  • Level 7 Expert
  • Posts: 429
  • The name's Bugger. De-Bugger.
Re: kniferaces
« Reply #2 on: August 31, 2010, 01:45:10 AM »
the way it's handled the bomb is also destroyed when they pick it up, no? why is restricting bomb even allowed D:

Scyther

  • Level 4 Intermediate
  • Posts: 92
  • <3 WCS :)
Re: kniferaces
« Reply #3 on: August 31, 2010, 02:00:16 AM »
Nope, if you pick it up its fine because the bomb gets unrestricted when the knife does, but because it starts off with restricting all the bomb destroys if you start with it

necavi

  • Watchdogs
  • Level 7 Expert
  • Posts: 327
  • WCSx Codeveloper
Re: kniferaces
« Reply #4 on: August 31, 2010, 02:22:41 AM »
All you have to do is modify the kniferace section of code to drop the bomb first, I think that its supposed to, but it actually drops grenades, instead of the bomb.

^[Psycho]^

  • Level 7 Expert
  • Posts: 203
  • ~~~~~~~~
Re: kniferaces
« Reply #5 on: August 31, 2010, 12:50:54 PM »
All you have to do is modify the kniferace section of code to drop the bomb first, I think that its supposed to, but it actually drops grenades, instead of the bomb.

ye i saw now the block, didnt check it out, thanks for this info

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1037
Re: kniferaces
« Reply #6 on: August 31, 2010, 12:53:33 PM »
Find this in the es_wcs.txt.
Code: [Select]
es es_xif (server_var(wcs_knifer) = 1) do
{
es est_dropweapon event_var(userid) 4
es est_restrictall event_var(userid)
es es_xdelayed 0.1 est_unrestrict event_var(userid) weapon_knife
es es_xdelayed 0.3 est_unrestrict event_var(userid) weapon_c4
es es_xdelayed 0.5 est_give event_var(userid) weapon_knife
es wcs_givexp event_var(userid) 60 0 1
es es_xtell event_var(userid) #multi #lightgreenKnife Race #default: #greenYou gain#lightgreen 60 #greenbonus EXP for being a knife race.
}

And change it too.

Code: [Select]
es es_xif (server_var(wcs_knifer) = 1) do
{
es_xset wcs_tmp 0
es playerget c4 wcs_tmp event_var(userid)
es est_restrictall event_var(userid)
es es_xdelayed 0.1 est_unrestrict event_var(userid) weapon_knife
es es_xdelayed 0.3 est_unrestrict event_var(userid) weapon_c4
es es_xdelayed 0.5 est_give event_var(userid) weapon_knife
if (server_var(wcs_tmp) == 1) then es_xdelayed 0.6 est_give event_var(userid) weapon_c4
es wcs_givexp event_var(userid) 60 0 1
es es_xtell event_var(userid) #multi #lightgreenKnife Race #default: #greenYou gain#lightgreen 60 #greenbonus EXP for being a knife race.
}

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

Scyther

  • Level 4 Intermediate
  • Posts: 92
  • <3 WCS :)
Re: kniferaces
« Reply #7 on: August 31, 2010, 02:45:59 PM »
Is it possible to make it drop weapons when you try to pick it up? Cause for example flame predator disarm, you make them drop it then you walk over it which destroys it so it's actually a weapon destroy :/

[Oddity]TeacherCreature

  • Moderator
  • Level 7 Expert
  • Posts: 1714
Re: kniferaces
« Reply #8 on: August 31, 2010, 03:21:05 PM »
It is the way est_restrict is coded.
I found this bug working on 1.76 which is why I made that block.

restrict should force drop weapons if u step on them or are holding them. It should be fixed and I reported it on the es forums but no one listens over there lol.

It also makes disarming skills quite strong because if the player you are disarming looks at you he throws weapon at you and it goes poof.
I sugest only disarming primarys or just like the bomb saving the weapons and just removing nad giving back with a timer